1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-03 14:03:52 +00:00

fix: Boost test might fail - make explicit for now

This commit is contained in:
Henry Schreiner 2020-08-25 09:57:41 -04:00
parent 82c71bd7ee
commit 105399a620

View File

@ -32,9 +32,11 @@ endif()
set(GOOGLE_TEST_INDIVIDUAL OFF) set(GOOGLE_TEST_INDIVIDUAL OFF)
include(AddGoogletest) include(AddGoogletest)
# Add boost to test boost::optional if available # Add boost to test boost::optional (currently explicitly requested)"
find_package(Boost 1.61) option(CLI11_BOOST "Turn on boost test (currently may fail with Boost 1.70)" OFF)
if(CLI11_BOOST)
find_package(Boost 1.61 REQUIRED)
endif()
set(boost-optional-def $<$<BOOL:${Boost_FOUND}>:CLI11_BOOST_OPTIONAL>) set(boost-optional-def $<$<BOOL:${Boost_FOUND}>:CLI11_BOOST_OPTIONAL>)
set(CLI11_TESTS set(CLI11_TESTS