]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: replace WITH_SEASTAR with WITH_CRIMSON 64246/head
authorKefu Chai <tchaikov@gmail.com>
Mon, 30 Jun 2025 02:04:42 +0000 (10:04 +0800)
committerKefu Chai <tchaikov@gmail.com>
Mon, 30 Jun 2025 02:08:09 +0000 (10:08 +0800)
Remove the deprecated WITH_SEASTAR CMake option and replace all
references with WITH_CRIMSON for consistency. Although WITH_SEASTAR
was functionally replaced in commit 23c33f69, it remained in the
source tree. This change completes the migration by removing the
old option entirely and standardizing on WITH_CRIMSON throughout
the codebase.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
CMakeLists.txt
src/CMakeLists.txt
src/include/config-h.in.cmake

index af82f20778d5e69309eb2b2c00b9b349873fb7b0..bc255b4df40ed81393d7855c411799b246e67762 100644 (file)
@@ -736,7 +736,6 @@ if (WITH_SYSTEM_ROCKSDB)
 endif()
 
 option(WITH_CRIMSON "Build seastar components")
-set(HAVE_SEASTAR ${WITH_CRIMSON})
 
 # Boost
 option(WITH_SYSTEM_BOOST "require and build with system Boost" OFF)
index 8a92da63dd9fcc5c543c0c2fc6573fd750f38e1a..e4c16866e3f4b5197c4b011325227cafa1068383 100644 (file)
@@ -131,7 +131,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
     if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10)
       message(FATAL_ERROR "C++20 support for win32 requires a minimum GCC version of 10.")
     endif()
-  elseif(HAVE_SEASTAR)
+  elseif(WITH_CRIMSON)
     if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13)
       # see https://tracker.ceph.com/issues/64375 for details
       message(FATAL_ERROR "crimson/seastar require minimum GCC version of 13 for C++20 and coroutine support")
@@ -153,7 +153,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
   # cmake does not add '-pie' for executables even if
   # CMAKE_POSITION_INDEPENDENT_CODE is TRUE.
   if(EXE_LINKER_USE_PIE)
-    if (NOT WITH_OSD_INSTRUMENT_FUNCTIONS AND NOT HAVE_SEASTAR)
+    if (NOT WITH_OSD_INSTRUMENT_FUNCTIONS AND NOT WITH_CRIMSON)
       string(APPEND CMAKE_EXE_LINKER_FLAGS " -pie")
     endif()
   endif()
index 2b5fcd1270655a0a77040db558a62c4ab40cef53..7285210c7b1a5857baa0510676f8e64463105653 100644 (file)
 /* Defined if UADK compress/decompress is supported */
 #cmakedefine HAVE_UADK
 
-/* Define if seastar is available. */
-#cmakedefine HAVE_SEASTAR
-
 /* Define if unit tests are built. */
 #cmakedefine UNIT_TESTS_BUILT