Skip to content

Commit 06c00f7

Browse files
committed
CMake: Fix error locating Boost DI without Hunter
When Boost-DI 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:30 (find_package): | Could not find a package configuration file provided by "Boost.DI" with any | of the following names: | | Boost.DIConfig.cmake | boost.di-config.cmake
1 parent e38b398 commit 06c00f7

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
@@ -28,4 +28,4 @@ find_package(tsl_hat_trie CONFIG REQUIRED)
2828

2929
# https://github.com/masterjedy/di
3030
hunter_add_package(Boost.DI)
31-
find_package(Boost.DI CONFIG REQUIRED)
31+
find_package(Boost.DI REQUIRED)

0 commit comments

Comments
 (0)