Mercurial > hg > orthanc-webviewer
comparison Resources/Orthanc/Plugins/OrthancPluginsExports.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 | |
children | b004474eeb66 |
comparison
equal
deleted
inserted
replaced
273:ae2049a3616a | 274:52b56343d268 |
---|---|
1 # In Orthanc <= 1.7.1, the instructions below were part of | |
2 # "Compiler.cmake", and were protected by the (now unused) option | |
3 # "ENABLE_PLUGINS_VERSION_SCRIPT" in CMake | |
4 | |
5 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | |
6 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR | |
7 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR | |
8 ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") | |
9 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/VersionScriptPlugins.map") | |
10 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") | |
11 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -exported_symbols_list ${CMAKE_CURRENT_LIST_DIR}/ExportedSymbolsPlugins.list") | |
12 endif() |