Mercurial > hg > orthanc-webviewer
changeset 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 | 6171ef61c512 |
files | CMakeLists.txt |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Wed Jun 10 12:32:46 2020 +0200 +++ b/CMakeLists.txt Wed Jun 10 14:09:26 2020 +0200 @@ -45,8 +45,13 @@ set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") -set(ENABLE_PLUGINS_VERSION_SCRIPT OFF) -set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/VersionScript.map") +if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") + set(ENABLE_PLUGINS_VERSION_SCRIPT OFF) + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/VersionScript.map") +endif() # Download and setup the Orthanc framework