From d4170976b818352b9ecad8c57e7e3295e4f60bce Mon Sep 17 00:00:00 2001 From: julesgrc0 Date: Thu, 21 Mar 2024 10:48:43 +0100 Subject: [PATCH] fix resource path for linux --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 790cf49..9fa1c8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ elseif(UNIX AND NOT ANDROID) endif() add_custom_target(link_resource - COMMAND objcopy --prefix-symbol=w --localize-hidden --rename-section .data=.rdata,CONTENTS,ALLOC,LOAD,READONLY,DATA --input-target binary --binary-architecture i386 --output-target ${OBJCOPY_ARCH} ${RESOURCE_PACK_DIR}/resource.pack ${CMAKE_BINARY_DIR}/resource.o --verbose + COMMAND objcopy --prefix-symbol=w --localize-hidden --rename-section .data=.rdata,CONTENTS,ALLOC,LOAD,READONLY,DATA --input-target binary --binary-architecture i386 --output-target ${OBJCOPY_ARCH} ${RESOURCE_PACK_DIR}resource.pack ${CMAKE_BINARY_DIR}/resource.o --verbose WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ) add_dependencies(${PROJECT_NAME} link_resource)