[gnome-build-meta/abderrahim/cmake-build-type] project.conf: Redefine what RelWithDebInfo CMAKE_BUILD_TYPE means




commit f978d7e4ef7ad7311ba51167d947da24a7bd11c3
Author: Abderrahim Kitouni <abderrahim kitouni codethink co uk>
Date:   Mon Jul 18 16:36:35 2022 +0100

    project.conf: Redefine what RelWithDebInfo CMAKE_BUILD_TYPE means
    
    This allows us to set our own flags without cmake interferring with them

 project.conf | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/project.conf b/project.conf
index 9d33b7142..b30d8f78e 100644
--- a/project.conf
+++ b/project.conf
@@ -79,7 +79,10 @@ elements:
 
   cmake:
     variables:
-      cmake-global: -DCMAKE_BUILD_TYPE=RelWithDebInfo
+      cmake-global: >-
+        -DCMAKE_BUILD_TYPE=RelWithDebInfo
+        -DCMAKE_C_FLAGS_RELWITHDEBINFO="-DNDEBUG"
+        -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-DNDEBUG"
       generator: Ninja
 
   meson:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]