summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1d5f4f1)
Thanks to Thomas Müller (DeepDiver) for providing the patch. Fixes #863.
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES version.gen)
add_library(mod_common STATIC ${SOURCES} ${MOC})
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES version.gen)
add_library(mod_common STATIC ${SOURCES} ${MOC})
if(APPLE)
target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
if(APPLE)
target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
-endif(APPLE)
\ No newline at end of file
+endif(APPLE)
+
+if(CMAKE_HOST_UNIX)
+ find_library(libdl dl)
+ if (libdl-NOTFOUND)
+ message(FATAL_ERROR "Cannot find required library: libdl")
+ endif (libdl-NOTFOUND)
+
+ target_link_libraries(mod_common ${libdl})
+endif(CMAKE_HOST_UNIX)