aboutsummaryrefslogtreecommitdiff
path: root/databases/foundationdb71-server/files/patch-cmake_CompileBoost.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'databases/foundationdb71-server/files/patch-cmake_CompileBoost.cmake')
-rw-r--r--databases/foundationdb71-server/files/patch-cmake_CompileBoost.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/foundationdb71-server/files/patch-cmake_CompileBoost.cmake b/databases/foundationdb71-server/files/patch-cmake_CompileBoost.cmake
new file mode 100644
index 000000000000..3cdf6da24b5c
--- /dev/null
+++ b/databases/foundationdb71-server/files/patch-cmake_CompileBoost.cmake
@@ -0,0 +1,20 @@
+--- cmake/CompileBoost.cmake.orig 2024-01-17 13:58:04 UTC
++++ cmake/CompileBoost.cmake
+@@ -85,7 +85,7 @@ if(USE_SANITIZER)
+ endif()
+
+ # since boost 1.72 boost installs cmake configs. We will enforce config mode
+-set(Boost_USE_STATIC_LIBS ON)
++set(Boost_USE_STATIC_LIBS OFF)
+
+ # Clang and Gcc will have different name mangling to std::call_once, etc.
+ if (UNIX AND CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
+@@ -113,7 +113,7 @@ if(WIN32)
+ return()
+ endif()
+
+-find_package(Boost 1.78.0 EXACT QUIET COMPONENTS context CONFIG PATHS ${BOOST_HINT_PATHS})
++find_package(Boost 1.78.0 COMPONENTS context CONFIG PATHS ${BOOST_HINT_PATHS})
+ set(FORCE_BOOST_BUILD OFF CACHE BOOL "Forces cmake to build boost and ignores any installed boost")
+
+ if(Boost_FOUND AND NOT FORCE_BOOST_BUILD)