comparison OrthancFramework/Resources/CMake/Compiler.cmake @ 4099:bf1a17f12306

moving version scripts from OrthancFramework to OrthancServer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 08:48:35 +0200
parents 3a59a021b5de
children 304842a0d152
comparison
equal deleted inserted replaced
4098:64e92ffbba0f 4099:bf1a17f12306
111 # "environ" global variable in FreeBSD 111 # "environ" global variable in FreeBSD
112 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined") 112 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
113 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") 113 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
114 endif() 114 endif()
115 115
116 if (NOT DEFINED ENABLE_PLUGINS_VERSION_SCRIPT OR
117 ENABLE_PLUGINS_VERSION_SCRIPT)
118 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/../VersionScriptPlugins.map")
119 endif()
120
121 # Remove the "-rdynamic" option 116 # Remove the "-rdynamic" option
122 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html 117 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html
123 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") 118 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
124 link_libraries(pthread) 119 link_libraries(pthread)
125 120
201 add_definitions(-DHAVE_WIN_PTHREAD=0) 196 add_definitions(-DHAVE_WIN_PTHREAD=0)
202 endif() 197 endif()
203 endif() 198 endif()
204 199
205 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") 200 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
206 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -exported_symbols_list ${CMAKE_CURRENT_LIST_DIR}/../ExportedSymbolsPlugins.list")
207
208 add_definitions( 201 add_definitions(
209 -D_XOPEN_SOURCE=1 202 -D_XOPEN_SOURCE=1
210 ) 203 )
211 link_libraries(iconv) 204 link_libraries(iconv)
212 205