externals: add overarching USE_SYSTEM_LIBS variable (#7078)

This commit is contained in:
Castor215 2023-10-21 01:02:20 +01:00 committed by GitHub
parent 6d4e462e42
commit 2416258117
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 81 additions and 18 deletions

View file

@ -34,6 +34,10 @@ if (NOT USE_SYSTEM_BOOST)
)
target_link_libraries(boost_iostreams PUBLIC boost)
# Add additional boost libs here; remember to ALIAS them in the root CMakeLists!
else()
unset(BOOST_ROOT CACHE)
unset(Boost_INCLUDE_DIR CACHE)
set(Boost_NO_SYSTEM_PATHS OFF CACHE BOOL "" FORCE)
endif()
# Catch2