From d1ee1d4f9f0b2ddc88929a9b6b39c33b9d363da9 Mon Sep 17 00:00:00 2001 From: Philipp van Kempen Date: Thu, 4 Jul 2024 14:29:13 +0200 Subject: [PATCH] ETISSPlugin.cmake: only change LIBRARY_OUTPUT_DIRECTORY if is defined --- cmake/ETISSPlugin.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/ETISSPlugin.cmake b/cmake/ETISSPlugin.cmake index d65bd4c9d6..8256dfd40a 100644 --- a/cmake/ETISSPlugin.cmake +++ b/cmake/ETISSPlugin.cmake @@ -1,7 +1,9 @@ MACRO(ETISSPlugin ProjName) TARGET_LINK_LIBRARIES(${PROJECT_NAME} PUBLIC ETISS) TARGET_COMPILE_DEFINITIONS(${PROJECT_NAME} PRIVATE ETISS_EXPORTS ETISS_PLUGIN_IMPORTS) - set_target_properties(${ProjName} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${ETISS_BINARY_DIR}/lib/plugins/) + IF(ETISS_BINARY_DIR) + set_target_properties(${ProjName} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${ETISS_BINARY_DIR}/lib/plugins/) + ENDIF() INSTALL(TARGETS ${ProjName} RUNTIME DESTINATION lib/plugins