diff options
author | Andrii Senkovych <jolly_roger@itblog.org.ua> | 2015-02-19 23:41:31 +0300 |
---|---|---|
committer | Andriy Senkovych <jolly_roger@itblog.org.ua> | 2015-02-23 21:21:07 +0300 |
commit | 122170b362e98aaec401764cd89000a628ff3d50 (patch) | |
tree | 54ef6d024062dd965e5ef80ab7b0078a49d07bdc /CMakeLists.txt | |
parent | 553dc0a8b09e883e2fe6dd6faa2fa341e021f056 (diff) |
Fix definitions for VS compiler
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ae444c4..4cde7e2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra") elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") - add_definitions(_CRT_SECURE_NO_WARNINGS) + add_definitions(-D_CRT_SECURE_NO_WARNINGS=1) endif() #add extra search paths for libraries and includes |