Mercurial > hg > orthanc-webviewer
comparison Orthanc/Resources/CMake/Compiler.cmake @ 151:ee5ff71f133b
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Nov 2016 09:58:13 +0100 |
parents | e8cfda4c8a2f |
children | 08f30c8962a7 |
comparison
equal
deleted
inserted
replaced
150:1a90184363f8 | 151:ee5ff71f133b |
---|---|
39 | 39 |
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 |
45 if (MSVC_VERSION LESS 1600) | |
46 # Starting with Visual Studio >= 2010 (i.e. macro _MSC_VER >= | |
47 # 1600), Microsoft ships a standard-compliant <stdint.h> | |
48 # header. For earlier versions of Visual Studio, give access to a | |
49 # compatibility header. | |
50 # http://stackoverflow.com/a/70630/881731 | |
51 # https://en.wikibooks.org/wiki/C_Programming/C_Reference/stdint.h#External_links | |
52 include_directories(${ORTHANC_ROOT}/Resources/ThirdParty/VisualStudio) | |
53 endif() | |
54 | |
45 link_libraries(netapi32) | 55 link_libraries(netapi32) |
46 endif() | 56 endif() |
47 | 57 |
48 | 58 |
49 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | 59 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR |