only link dl on Linux

This commit is contained in:
kakwa 2017-11-04 14:22:25 +01:00
parent 3de83303e1
commit 03f9bfed56
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ IF(STATIC)
ENDIF(STATIC)
IF(BUNDLE_CIVETWEB)
set(DL_LIBRARIES 'dl')
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(DL_LIBRARIES 'dl')
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
ENDIF(BUNDLE_CIVETWEB)
IF(LINK_DL)