From 96504b0c60f1457f542317879447f0d1ed43740b Mon Sep 17 00:00:00 2001 From: Yan Zaretskiy Date: Fri, 21 Jun 2024 20:37:54 +0000 Subject: [PATCH] #9532: Force deps to be built statically --- cmake/dependencies.cmake | 1 + cmake/fetch_boost.cmake | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 7e14cb82db4..622489e7fdd 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -21,6 +21,7 @@ CPMAddPackage( OPTIONS "YAML_CPP_BUILD_TESTS OFF" "YAML_CPP_BUILD_TOOLS OFF" + "YAML_BUILD_SHARED_LIBS OFF" ) if (yaml-cpp_ADDED) diff --git a/cmake/fetch_boost.cmake b/cmake/fetch_boost.cmake index 92de41bfab8..144169378f6 100644 --- a/cmake/fetch_boost.cmake +++ b/cmake/fetch_boost.cmake @@ -6,6 +6,8 @@ function(fetch_boost_library BOOST_PROJECT_NAME) NAME boost_${BOOST_PROJECT_NAME} GITHUB_REPOSITORY boostorg/${BOOST_PROJECT_NAME} GIT_TAG boost-1.85.0 + OPTIONS + "BUILD_SHARED_LIBS OFF" ) get_target_property(BOOST_INTERFACE_LINK_LIBRARIES