findDependencies.cmake: no need to specify `COMPONENTS` for boost when using it header-only (#4511)

This commit is contained in:
Oliver Stöneberg 2022-09-27 18:49:38 +02:00 committed by GitHub
parent 18db69c078
commit 767db58a5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ endif()
find_package(Threads REQUIRED)
if (USE_BOOST)
find_package(Boost COMPONENTS container QUIET)
# we are using the header-only "container" component
find_package(Boost QUIET)
endif()
find_program(LIBXML2_XMLLINT_EXECUTABLE xmllint)