comparison OrthancFramework/Resources/CMake/Compiler.cmake @ 4049:47e9e788224c framework

removing occurrences of ORTHANC_ROOT
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Jun 2020 10:05:26 +0200
parents 05b8fd21089c
children 9c37896a4457
comparison
equal deleted inserted replaced
4048:64919a9958bb 4049:47e9e788224c
73 # 1600), Microsoft ships a standard-compliant <stdint.h> 73 # 1600), Microsoft ships a standard-compliant <stdint.h>
74 # header. For earlier versions of Visual Studio, give access to a 74 # header. For earlier versions of Visual Studio, give access to a
75 # compatibility header. 75 # compatibility header.
76 # http://stackoverflow.com/a/70630/881731 76 # http://stackoverflow.com/a/70630/881731
77 # https://en.wikibooks.org/wiki/C_Programming/C_Reference/stdint.h#External_links 77 # https://en.wikibooks.org/wiki/C_Programming/C_Reference/stdint.h#External_links
78 include_directories(${ORTHANC_ROOT}/OrthancFramework/Resources/ThirdParty/VisualStudio) 78 include_directories(${CMAKE_CURRENT_LIST_DIR}/../../Resources/ThirdParty/VisualStudio)
79 endif() 79 endif()
80 80
81 link_libraries(netapi32) 81 link_libraries(netapi32)
82 endif() 82 endif()
83 83
107 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") 107 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
108 endif() 108 endif()
109 109
110 if (NOT DEFINED ENABLE_PLUGINS_VERSION_SCRIPT OR 110 if (NOT DEFINED ENABLE_PLUGINS_VERSION_SCRIPT OR
111 ENABLE_PLUGINS_VERSION_SCRIPT) 111 ENABLE_PLUGINS_VERSION_SCRIPT)
112 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${ORTHANC_ROOT}/OrthancFramework/Resources/VersionScriptPlugins.map") 112 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/../VersionScriptPlugins.map")
113 endif() 113 endif()
114 114
115 # Remove the "-rdynamic" option 115 # Remove the "-rdynamic" option
116 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html 116 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html
117 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") 117 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
195 add_definitions(-DHAVE_WIN_PTHREAD=0) 195 add_definitions(-DHAVE_WIN_PTHREAD=0)
196 endif() 196 endif()
197 endif() 197 endif()
198 198
199 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") 199 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
200 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -exported_symbols_list ${ORTHANC_ROOT}/Plugins/Samples/Common/ExportedSymbols.list") 200 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/../ExportedSymbolsPlugins.list")
201 201
202 add_definitions( 202 add_definitions(
203 -D_XOPEN_SOURCE=1 203 -D_XOPEN_SOURCE=1
204 ) 204 )
205 link_libraries(iconv) 205 link_libraries(iconv)