Skip to content
Snippets Groups Projects
Commit ec64bec4 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: use CMAKE_DL_LIBS and not dl directly as it does not always exist

parent ed922d27
No related branches found
No related tags found
No related merge requests found
......@@ -516,9 +516,9 @@ IF(KWSYS_C_SRCS OR KWSYS_CXX_SRCS)
# If kwsys contains the DynamicLoader, need extra library
IF(KWSYS_USE_DynamicLoader)
ADD_LIBRARY(testDynload SHARED testDynload.c)
IF(UNIX AND NOT CYGWIN)
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} dl)
ENDIF(UNIX AND NOT CYGWIN)
IF(UNIX)
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} ${CMAKE_DL_LIBS})
ENDIF(UNIX)
ENDIF(KWSYS_USE_DynamicLoader)
# Apply user-defined target properties to the library.
......
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