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




commit 836a708e44f9ab83bf9fe3cf778be62aa50381ef
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
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-build-meta/-/merge_requests/1667>

 project.conf | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/project.conf b/project.conf
index 075d326bb..324e70574 100644
--- a/project.conf
+++ b/project.conf
@@ -74,7 +74,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]