0
|
1 # Orthanc - A Lightweight, RESTful DICOM Store
|
|
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
|
|
3 # Department, University Hospital of Liege, Belgium
|
|
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium
|
|
5 # Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
|
|
6 #
|
|
7 # This program is free software: you can redistribute it and/or
|
|
8 # modify it under the terms of the GNU General Public License as
|
|
9 # published by the Free Software Foundation, either version 3 of the
|
|
10 # License, or (at your option) any later version.
|
|
11 #
|
|
12 # This program is distributed in the hope that it will be useful, but
|
|
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
15 # General Public License for more details.
|
|
16 #
|
|
17 # You should have received a copy of the GNU General Public License
|
|
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
|
|
20
|
|
21 # In Orthanc <= 1.7.1, the instructions below were part of
|
|
22 # "Compiler.cmake", and were protected by the (now unused) option
|
|
23 # "ENABLE_PLUGINS_VERSION_SCRIPT" in CMake
|
|
24
|
|
25 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR
|
|
26 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR
|
|
27 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR
|
|
28 ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
|
29 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/VersionScriptPlugins.map")
|
|
30 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
|
31 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -exported_symbols_list ${CMAKE_CURRENT_LIST_DIR}/ExportedSymbolsPlugins.list")
|
|
32 endif()
|