From 7e09d5b537ea4bc95b24feca94c4af54a2776258 Mon Sep 17 00:00:00 2001 From: Huseyn Ismayilov Date: Fri, 22 Nov 2024 20:15:11 +0400 Subject: [PATCH] build: Make editor resources path absolute --- editor/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/CMakeLists.txt b/editor/CMakeLists.txt index 5f10860..29e5806 100644 --- a/editor/CMakeLists.txt +++ b/editor/CMakeLists.txt @@ -14,7 +14,7 @@ add_executable(${NAME}) # Add resources folder if(CMAKE_BUILD_TYPE STREQUAL "Release") file(COPY ${EDITOR_RESOURCES_DIR} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) - target_compile_definitions(${NAME} PUBLIC EDITOR_RESOURCES_PATH="resources/") + target_compile_definitions(${NAME} PUBLIC EDITOR_RESOURCES_PATH="${CMAKE_CURRENT_BINARY_DIR}/resources/") else() target_compile_definitions(${NAME} PUBLIC EDITOR_RESOURCES_PATH="${CMAKE_CURRENT_SOURCE_DIR}/resources/") endif()