diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-11-22 22:12:03 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-11-22 22:44:31 -0500 |
commit | 2ae80482cd88fb9786d3ff54777b8a462641f29f (patch) | |
tree | 59ea6b7a8217c17c0c1e915616f6615cc1813d9c /CMakeLists.txt | |
parent | 8ff58f7703bb2854a05acfbbda317b0abad2c0e7 (diff) | |
download | reloc-2ae80482cd88fb9786d3ff54777b8a462641f29f.tar.gz |
Decrease MSVC chatter
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f17030..e24cc1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,8 @@ if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra") elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS /Wall") + # C4996: The POSIX name for this item is deprecated + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS /W4 /wd4996") endif() enable_testing() |