Skip to content

Commit

Permalink
Reference Boost libraries individually in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
YakoYakoYokuYoku committed Dec 20, 2024
1 parent 436a8c1 commit 62192c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 62192c5

Please sign in to comment.