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