From 105399a620808d9c844431f5707e6241710c8f2b Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 25 Aug 2020 09:57:41 -0400 Subject: [PATCH] fix: Boost test might fail - make explicit for now --- tests/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7e76321e..cce6e30b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -32,9 +32,11 @@ endif() set(GOOGLE_TEST_INDIVIDUAL OFF) include(AddGoogletest) -# Add boost to test boost::optional if available -find_package(Boost 1.61) - +# Add boost to test boost::optional (currently explicitly requested)" +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 $<$:CLI11_BOOST_OPTIONAL>) set(CLI11_TESTS