comparison CMakeLists.txt @ 267:fada2686f2c4

fix build on OS X
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jun 2020 14:09:26 +0200
parents 4e9d30c19b4b
children 938257eebc03
comparison
equal deleted inserted replaced
266:4e9d30c19b4b 267:fada2686f2c4
43 43
44 # Advanced parameters to fine-tune linking against system libraries 44 # Advanced parameters to fine-tune linking against system libraries
45 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") 45 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK")
46 46
47 47
48 set(ENABLE_PLUGINS_VERSION_SCRIPT OFF) 48 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR
49 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/VersionScript.map") 49 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR
50 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR
51 ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
52 set(ENABLE_PLUGINS_VERSION_SCRIPT OFF)
53 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/VersionScript.map")
54 endif()
50 55
51 56
52 # Download and setup the Orthanc framework 57 # Download and setup the Orthanc framework
53 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) 58 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
54 59