ENH: use CMAKE_DL_LIBS and not dl directly as it does not always exist
This commit is contained in:
parent
ae7fdcf6a9
commit
9345da20f3
|
@ -516,9 +516,9 @@ IF(KWSYS_C_SRCS OR KWSYS_CXX_SRCS)
|
||||||
# If kwsys contains the DynamicLoader, need extra library
|
# If kwsys contains the DynamicLoader, need extra library
|
||||||
IF(KWSYS_USE_DynamicLoader)
|
IF(KWSYS_USE_DynamicLoader)
|
||||||
ADD_LIBRARY(testDynload SHARED testDynload.c)
|
ADD_LIBRARY(testDynload SHARED testDynload.c)
|
||||||
IF(UNIX AND NOT CYGWIN)
|
IF(UNIX)
|
||||||
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} dl)
|
TARGET_LINK_LIBRARIES(${KWSYS_NAMESPACE} ${CMAKE_DL_LIBS})
|
||||||
ENDIF(UNIX AND NOT CYGWIN)
|
ENDIF(UNIX)
|
||||||
ENDIF(KWSYS_USE_DynamicLoader)
|
ENDIF(KWSYS_USE_DynamicLoader)
|
||||||
|
|
||||||
# Apply user-defined target properties to the library.
|
# Apply user-defined target properties to the library.
|
||||||
|
|
Loading…
Reference in New Issue