Mercurial > hg > orthanc-webviewer
comparison Resources/Orthanc/CMake/Compiler.cmake @ 274:52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 08:57:14 +0200 |
parents | 2c3555b8eabc |
children | b004474eeb66 |
comparison
equal
deleted
inserted
replaced
273:ae2049a3616a | 274:52b56343d268 |
---|---|
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 |