]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
CMakeLists: Fallback to RelWithDebInfo
authorMatan Breizman <mbreizma@redhat.com>
Tue, 4 Feb 2025 10:24:43 +0000 (10:24 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 8 May 2025 12:55:00 +0000 (12:55 +0000)
commitd0b4ff4c57ded4e339b1f579f009ed6c3ab891b3
treeb3ed36c6440e3a7e9157e020debc4802fe0d3d3d
parent2ed4296866af3634d0799f3b958a3f1f6935daa0
CMakeLists: Fallback to RelWithDebInfo

Currently, if .git exists, we set CMAKE_BUILD_TYPE=Debug.
Otherwise, we leave it empty and no optimization flags will
be used.
With this change, the fallback CMAKE_BUILD_TYPE is set
to RelWithDebInfo instead.

From CMAKE_BUILD_TYPE manual:
The default value is often an empty string, but this is usually not
desirable and one of the other standard build types is usually more appropriate.

Note: One notable change is that -DNDEBUG will now be defined.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit c5766bb2c48634925c8685b779ec814edc43d17b)
CMakeLists.txt