Skip to content

Commit

Permalink
ETISSPlugin.cmake: only change LIBRARY_OUTPUT_DIRECTORY if is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Jul 11, 2024
1 parent 776830e commit d1ee1d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/ETISSPlugin.cmake
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d1ee1d4

Please sign in to comment.