From 62192c52be4effdf6ecff8809d1a50022ab78686 Mon Sep 17 00:00:00 2001 From: Martin Rodriguez Reboredo Date: Thu, 19 Dec 2024 23:36:35 -0300 Subject: [PATCH] Reference Boost libraries individually in CMake --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 199062bb9..9f3ad3af8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,9 @@ if(NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "") message(STATUS "Setting build type to '${CMAKE_BUILD_TYPE}' as none was specified.") endif() -find_package(Boost COMPONENTS headers serialization) +find_package(boost_headers REQUIRED) +find_package(boost_serialization REQUIRED) + if(WIN32) # Prevent looking in the registry so that the MinGW python can be found. set(Python3_FIND_REGISTRY NEVER)