Skip to content

Commit a8b1c3c

Browse files
committed
CMake: Fix error locating Boost without Hunter
When Boost is provided by the build system, it may use a CMake Find module instead of a package configuration file. Error was: | CMake Error at cmake/dependencies.cmake:7 (find_package): | Could not find a package configuration file provided by "Boost" with any of | the following names: | | BoostConfig.cmake | boost-config.cmake
1 parent f611ebe commit a8b1c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/dependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ find_package(GMock CONFIG REQUIRED)
55

66
# https://docs.hunter.sh/en/latest/packages/pkg/Boost.html
77
hunter_add_package(Boost COMPONENTS random filesystem program_options)
8-
find_package(Boost CONFIG REQUIRED random filesystem program_options)
8+
find_package(Boost REQUIRED random filesystem program_options)
99

1010
# added from hunter_config
1111
hunter_add_package(GSL)

0 commit comments

Comments
 (0)