]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: build boost debug variant when CMAKE_BUILD_TYPE is Debug 55528/head
authorKefu Chai <tchaikov@gmail.com>
Sun, 11 Feb 2024 07:42:14 +0000 (15:42 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sun, 11 Feb 2024 07:48:54 +0000 (15:48 +0800)
commitc7155c3db7365e8b25d15af6c2fd2b2871aa552f
treed3bac9f965b09a0c8a92e4027b3b31076ba2096e
parent8bbeeb80a58adb816caf9ac91bfaae216408e14d
cmake: build boost debug variant when CMAKE_BUILD_TYPE is Debug

boost has some different predefined  build variants. they are quite
like CMake's CMAKE_BUILD_TYPE. in which, "debug" enables some
features related features. so it would be nice if we can have it
enabled for the Debug build, if the boost is built from source.
see also
https://www.boost.org/build/doc/html/bbv2/overview/builtins/features.html

before this change, we always build the "release" variant.  in this
change, "debug" variant is built if Ceph's is built with
CMAKE_BUILD_TYPE=Debug. please note, this change does not change
the way how boost is built when packaging Ceph, as our debian/rpm
receipts do not define CMAKE_BUILD_TYPE and respect the distros'
settings, in that case, the "release" variant is still built.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
cmake/modules/BuildBoost.cmake