diff options
Diffstat (limited to '')
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 516aba554..b0fe285db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -8,8 +8,11 @@ if (NOT MSVC) | |||
| 8 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-attributes -pthread") | 8 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-attributes -pthread") |
| 9 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") | 9 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") |
| 10 | else() | 10 | else() |
| 11 | # Silence deprecation warnings | 11 | # Silence "deprecation" warnings |
| 12 | add_definitions(/D_CRT_SECURE_NO_WARNINGS) | 12 | add_definitions(/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE) |
| 13 | # Avoid windows.h junk | ||
| 14 | add_definitions(/DNOMINMAX) | ||
| 15 | |||
| 13 | # set up output paths for executable binaries (.exe-files, and .dll-files on DLL-capable platforms) | 16 | # set up output paths for executable binaries (.exe-files, and .dll-files on DLL-capable platforms) |
| 14 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | 17 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) |
| 15 | 18 | ||