Commit 53b1896c by Anton Danielsson

Added _CRT_SECURE_NO_WARNINGS under MSVC.

parent 2589e69e
...@@ -33,6 +33,7 @@ endif() ...@@ -33,6 +33,7 @@ endif()
# Turn compiler warnings up to 11 # Turn compiler warnings up to 11
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
add_cxx_compiler_flag(-W4) add_cxx_compiler_flag(-W4)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
else() else()
add_cxx_compiler_flag(-Wall) add_cxx_compiler_flag(-Wall)
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment