diff options
author | Alam Arias <[email protected]> | 2010-03-18 14:46:38 -0400 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-18 16:32:44 -0700 |
commit | 745d36dc761abb84118b26b8953299d5cdc94b2c (patch) | |
tree | 8c3c9da92dcc097a3e3d78e5627f66f1e5e995ca | |
parent | 2355d6a4a043a82ad40eae193893beb4bcd2efa0 (diff) |
add _CRT_NONSTDC_NO_DEPRECATE define for MSVC
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3011b757..d6e66e38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,6 +97,7 @@ IF(MSVC) SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG") SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG") ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS) + ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_DEPRECATE) ELSE() ADD_DEFINITIONS(-Wall) CHECK_C_COMPILER_FLAG(-Wextra HAVE_W_EXTRA) |