From 7eadc775575fb426c6febb7399e8f858f6ec6a1e Mon Sep 17 00:00:00 2001 From: lisyarus Date: Mon, 21 Sep 2020 20:21:06 +0300 Subject: [PATCH] Do not create resources for non-built targets in package mode --- tools/resource/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/resource/CMakeLists.txt b/tools/resource/CMakeLists.txt index c0a147d7..5ce6f66a 100644 --- a/tools/resource/CMakeLists.txt +++ b/tools/resource/CMakeLists.txt @@ -1,6 +1,12 @@ psemek_add_build_tool(psemek-resource-compiler FALSE compiler.cpp) function(psemek_add_resources TARGET) + if(PSEMEK_PACKAGE_MODE) + if(NOT (TARGET ${TARGET})) + return() + endif() + endif() + get_target_property(OUT_DIR ${TARGET} BINARY_DIR) get_target_property(INPUT_DIR ${TARGET} SOURCE_DIR)