Merge pull request #103 from 1ace/add-debug-flags

Add some debug warnings
This commit is contained in:
Sascha Willems 2017-04-23 12:09:26 +02:00 committed by GitHub
commit 5912aa0a7c

View file

@ -73,6 +73,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch-enum")
endif()
# Debug flags
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wextra -Wundef")
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-std=c++11)