projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e42526
)
include: cmake.mk: honor CONFIG_DEBUG
author
Daniel Golle
<daniel@makrotopia.org>
Sat, 9 Nov 2024 23:31:18 +0000
(
00:31
+0100)
committer
Daniel Golle
<daniel@makrotopia.org>
Tue, 12 Nov 2024 02:31:06 +0000
(
02:31
+0000)
Set CMAKE_BUILD_TYPE according to CONFIG_DEBUG.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
include/cmake.mk
patch
|
blob
|
history
diff --git
a/include/cmake.mk
b/include/cmake.mk
index 87309dd0458a82f896b7d821b75e64b7abb52dd7..f59410c2f32dd80124d701470cd337a33cc1f04a 100644
(file)
--- a/
include/cmake.mk
+++ b/
include/cmake.mk
@@
-97,7
+97,7
@@
define Build/Configure/Default
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_VERSION=1 \
-DCMAKE_SYSTEM_PROCESSOR=$(ARCH) \
- -DCMAKE_BUILD_TYPE=
Release
\
+ -DCMAKE_BUILD_TYPE=
$(if $(CONFIG_DEBUG),Debug,Release)
\
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_C_COMPILER_LAUNCHER="$(CMAKE_C_COMPILER_LAUNCHER)" \