Mercurial > hg > orthanc
comparison Resources/CMake/Compiler.cmake @ 1638:158e7b6f859a dcmtk-3.6.1
dcmtk 3.6.1
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Sep 2015 10:23:22 +0200 |
parents | 307b9ea6c39b |
children | c131566b8252 |
comparison
equal
deleted
inserted
replaced
1637:dfbde7c3fe19 | 1638:158e7b6f859a |
---|---|
40 add_definitions( | 40 add_definitions( |
41 -D_CRT_SECURE_NO_WARNINGS=1 | 41 -D_CRT_SECURE_NO_WARNINGS=1 |
42 -D_CRT_SECURE_NO_DEPRECATE=1 | 42 -D_CRT_SECURE_NO_DEPRECATE=1 |
43 ) | 43 ) |
44 include_directories(${ORTHANC_ROOT}/Resources/ThirdParty/VisualStudio) | 44 include_directories(${ORTHANC_ROOT}/Resources/ThirdParty/VisualStudio) |
45 link_libraries(netapi32) | |
46 endif() | 45 endif() |
47 | 46 |
48 | 47 |
49 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | 48 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR |
50 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR | 49 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR |
67 ) | 66 ) |
68 link_libraries(dl) | 67 link_libraries(dl) |
69 endif() | 68 endif() |
70 | 69 |
71 elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | 70 elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
71 link_libraries(netapi32) | |
72 | |
72 if (MSVC) | 73 if (MSVC) |
73 message("MSVC compiler version = " ${MSVC_VERSION} "\n") | 74 message("MSVC compiler version = " ${MSVC_VERSION} "\n") |
74 # Starting Visual Studio 2013 (version 1800), it is not possible | 75 # Starting Visual Studio 2013 (version 1800), it is not possible |
75 # to target Windows XP anymore | 76 # to target Windows XP anymore |
76 if (MSVC_VERSION LESS 1800) | 77 if (MSVC_VERSION LESS 1800) |