comparison Orthanc/Resources/CMake/Compiler.cmake @ 124:f395dddfbf16

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Jan 2016 14:27:06 +0100
parents abdde1dfb3eb
children e8cfda4c8a2f
comparison
equal deleted inserted replaced
123:6e9e06fd0e6f 124:f395dddfbf16
48 48
49 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR 49 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR
50 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR 50 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR
51 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") 51 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
52 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined") 52 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
53 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--version-script=${ORTHANC_ROOT}/Plugins/Samples/Common/VersionScript.map") 53 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
54
55 if (NOT DEFINED ENABLE_PLUGINS_VERSION_SCRIPT OR
56 ENABLE_PLUGINS_VERSION_SCRIPT)
57 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${ORTHANC_ROOT}/Plugins/Samples/Common/VersionScript.map")
58 endif()
54 59
55 # Remove the "-rdynamic" option 60 # Remove the "-rdynamic" option
56 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html 61 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html
57 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") 62 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
58 link_libraries(uuid pthread rt) 63 link_libraries(uuid pthread rt)