From 4737b4414909d0682a1a8f587e2eb601d0fbd46c Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 22 Mar 2016 00:06:50 +0000 Subject: [PATCH] Add some debug warnings Make use of them by configuring your build type to debug, for instance by adding `-DCMAKE_BUILD_TYPE=Debug` to your cmake invocation. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8833e4fb..dd12170a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,9 @@ message(STATUS ${VULKAN_LIB}) # Set preprocessor defines set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOMINMAX -DVK_PROTOTYPES -D_USE_MATH_DEFINES") +# 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) add_definitions(-std=c++0x)