]> git.apps.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:38:11 +0000 (12:38 +0000)
commitc5766bb2c48634925c8685b779ec814edc43d17b
treef76014cc0e2b4324f6bd78bb65e5959ffc49b828
parent296821e0146ced9d2dbae77a6b11ee5ca5937006
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>
CMakeLists.txt