comparison Resources/CMake/Compiler.cmake @ 1785:c131566b8252 dcmtk-3.6.1

integration mainline->dcmtk-3.6.1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 18 Nov 2015 10:16:21 +0100
parents 158e7b6f859a 8040d56cb0b3
children
comparison
equal deleted inserted replaced
1639:1b82bb0446d2 1785:c131566b8252
47 47
48 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR 48 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR
49 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR 49 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR
50 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") 50 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
51 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined") 51 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
52 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") 52 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--version-script=${ORTHANC_ROOT}/Plugins/Samples/Common/VersionScript.map")
53 53
54 # Remove the "-rdynamic" option 54 # Remove the "-rdynamic" option
55 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html 55 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html
56 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") 56 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
57 link_libraries(uuid pthread rt) 57 link_libraries(uuid pthread rt)
107 add_definitions(-DHAVE_WIN_PTHREAD=0) 107 add_definitions(-DHAVE_WIN_PTHREAD=0)
108 endif() 108 endif()
109 endif() 109 endif()
110 110
111 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") 111 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
112 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -exported_symbols_list ${ORTHANC_ROOT}/Plugins/Samples/Common/ExportedSymbols.list")
113
112 add_definitions( 114 add_definitions(
113 -D_XOPEN_SOURCE=1 115 -D_XOPEN_SOURCE=1
114 ) 116 )
115 link_libraries(iconv) 117 link_libraries(iconv)
116 118