Skip to content
Snippets Groups Projects
Commit 3ba658de authored by Francois Bleibel's avatar Francois Bleibel
Browse files

Added UNIX guard for inclusion of dynamic load library in CMakeFiles.

parent cb7a0801
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,11 @@ FOREACH(tool_name ${tools}) ...@@ -22,8 +22,11 @@ FOREACH(tool_name ${tools})
LINK_DIRECTORIES(${${PROJECT_NAME}_BINARY_DIR}/lib) LINK_DIRECTORIES(${${PROJECT_NAME}_BINARY_DIR}/lib)
TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME}
${PROJECT_NAME} ${PROJECT_NAME})
dl)
IF(UNIX)
TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} dl)
ENDIF(UNIX)
INSTALL(TARGETS ${tool_name} INSTALL(TARGETS ${tool_name}
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME}) DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment