Mercurial > hg > orthanc
comparison Plugins/Samples/ServeFolders/CMakeLists.txt @ 1325:a761deb85729
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 13 Feb 2015 15:03:51 +0100 |
parents | 5a92665dee23 |
children | 92da9e1c2daa |
comparison
equal
deleted
inserted
replaced
1324:1609f71dc259 | 1325:a761deb85729 |
---|---|
21 if (CMAKE_COMPILER_IS_GNUCXX) | 21 if (CMAKE_COMPILER_IS_GNUCXX) |
22 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/VersionScript.map -Wl,--no-undefined") | 22 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/VersionScript.map -Wl,--no-undefined") |
23 endif() | 23 endif() |
24 | 24 |
25 include_directories(${CMAKE_SOURCE_DIR}/../../Include/) | 25 include_directories(${CMAKE_SOURCE_DIR}/../../Include/) |
26 add_library(ServerFolders SHARED | 26 add_library(ServeFolders SHARED |
27 Plugin.cpp | 27 Plugin.cpp |
28 ${THIRD_PARTY_SOURCES} | 28 ${THIRD_PARTY_SOURCES} |
29 ) | 29 ) |
30 | 30 |
31 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | 31 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
32 # Linking with "pthread" is necessary, otherwise the software crashes | 32 # Linking with "pthread" is necessary, otherwise the software crashes |
33 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 | 33 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 |
34 target_link_libraries(ServerFolders dl rt) | 34 target_link_libraries(ServeFolders dl rt) |
35 endif() | 35 endif() |