Project

General

Profile

libdl-linker-fix.diff

patch on src/common/CMakeLists.txt - DeepDiver, 11/23/2009 10:05 PM

View differences:

src/common/CMakeLists.txt
74 74
add_library(mod_common STATIC ${SOURCES} ${MOC})
75 75
if(APPLE)
76 76
  target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
77
endif(APPLE)
77
endif(APPLE)
78
if(CMAKE_HOST_UNIX)
79
    find_library(libdl dl)
80
    if (libdl-NOTFOUND)
81
        message(FATAL_ERROR "cannot find required lib dl")
82
    endif (libdl-NOTFOUND)
83

  
84
    target_link_libraries(mod_common ${libdl})
85
endif(CMAKE_HOST_UNIX)