Mercurial > hg > orthanc
comparison Resources/CMake/Compiler.cmake @ 2148:e18023c2fdfb
fix visual studio 2015 build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Nov 2016 08:47:31 +0100 |
parents | 5e40f88f4eba |
children | bed8e7ad8bab |
comparison
equal
deleted
inserted
replaced
2147:8466aa60544a | 2148:e18023c2fdfb |
---|---|
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 |