aboutsummaryrefslogtreecommitdiff
path: root/project/cmake
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2016-10-13 14:03:40 +0200
committerwsnipex <wsnipex@a1.net>2016-10-13 14:16:22 +0200
commitef138168942cfca134efb01543bb7c8c7ec69e26 (patch)
tree891393b6952d4b90e81709d19e7dad9730c02b52 /project/cmake
parentae06a53de5bd2f0596f46e177d089773983b068a (diff)
[cmake] set debug flags when doing debug builds
Diffstat (limited to 'project/cmake')
-rw-r--r--project/cmake/scripts/common/ArchSetup.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/project/cmake/scripts/common/ArchSetup.cmake b/project/cmake/scripts/common/ArchSetup.cmake
index 3d2fad20e1..3114cf7299 100644
--- a/project/cmake/scripts/common/ArchSetup.cmake
+++ b/project/cmake/scripts/common/ArchSetup.cmake
@@ -133,3 +133,8 @@ if(NOT DEFINED NEON OR NEON)
add_options(CXX ALL_BUILDS "-mfpu=neon -mvectorize-with-neon-quad")
endif()
endif()
+
+if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ add_options (ALL_LANGUAGES DEBUG "-g" "-D_DEBUG" "-Wall")
+endif()
+