Skip to content

Commit 62192c5

Browse files
Reference Boost libraries individually in CMake
1 parent 436a8c1 commit 62192c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ if(NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
5252
message(STATUS "Setting build type to '${CMAKE_BUILD_TYPE}' as none was specified.")
5353
endif()
5454

55-
find_package(Boost COMPONENTS headers serialization)
55+
find_package(boost_headers REQUIRED)
56+
find_package(boost_serialization REQUIRED)
57+
5658
if(WIN32)
5759
# Prevent looking in the registry so that the MinGW python can be found.
5860
set(Python3_FIND_REGISTRY NEVER)

0 commit comments

Comments
 (0)