Mercurial > hg > orthanc
comparison Resources/CMake/Compiler.cmake @ 1901:50234539a0dd
ENABLE_PLUGINS_VERSION_SCRIPT
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Jan 2016 14:20:41 +0100 |
parents | 8040d56cb0b3 |
children | 01de36d949c3 |
comparison
equal
deleted
inserted
replaced
1900:b1291df2f780 | 1901:50234539a0dd |
---|---|
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) |