fixed comiplation errors on linux

This commit is contained in:
Anselme 2016-12-27 13:53:45 +01:00
parent dacfaf22c7
commit 50624b8991

View File

@ -365,8 +365,12 @@ include_directories(
${EXTRA_INCLUDES}
)
if(UNIX)
# -ldl seems to be required for linux executables
LIST(APPEND LIB_DEPENDENCIES_LIST dl)
endif()
if(LIB_SRC_LIST)
# please do not add -ldl here for all systems without any explanation
target_link_libraries(
${LIBRARY_NAME}
${LIB_DEPENDENCIES_LIST}