mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-08 15:53:51 +00:00
Fix for forced boost addition in testing
This commit is contained in:
parent
177f40a17c
commit
5591977764
@ -9,26 +9,31 @@
|
|||||||
|
|
||||||
// [CLI11:verbatim]
|
// [CLI11:verbatim]
|
||||||
#ifdef __has_include
|
#ifdef __has_include
|
||||||
#if defined(CLI11_CPP17) && __has_include(<optional>)
|
|
||||||
#include <optional>
|
#if defined(CLI11_CPP17) && __has_include(<optional>) && \
|
||||||
#ifdef __cpp_lib_optional
|
defined(__cpp_lib_optional) && !defined(CLI11_STD_OPTIONAL)
|
||||||
#ifndef CLI11_STD_OPTIONAL
|
|
||||||
#define CLI11_STD_OPTIONAL
|
#define CLI11_STD_OPTIONAL
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#endif
|
#if defined(CLI11_CPP14) && __has_include(<experimental/optional>) && \
|
||||||
#if defined(CLI11_CPP14) && __has_include(<experimental/optional>)
|
!defined(CLI11_EXPERIMENTAL_OPTIONAL)
|
||||||
#include <experimental/optional>
|
|
||||||
#ifndef CLI11_EXPERIMENTAL_OPTIONAL
|
|
||||||
#define CLI11_EXPERIMENTAL_OPTIONAL
|
#define CLI11_EXPERIMENTAL_OPTIONAL
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#if __has_include(<boost/optional.hpp>)
|
#if __has_include(<boost/optional.hpp>) && !defined(CLI11_BOOST_OPTIONAL)
|
||||||
#include <boost/optional.hpp>
|
|
||||||
#ifndef CLI11_BOOST_OPTIONAL
|
|
||||||
#define CLI11_BOOST_OPTIONAL
|
#define CLI11_BOOST_OPTIONAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CLI11_STD_OPTIONAL
|
||||||
|
#include <optional>
|
||||||
|
#endif
|
||||||
|
#ifdef CLI11_EXPERIMENTAL_OPTIONAL
|
||||||
|
#include <experimental/optional>
|
||||||
|
#endif
|
||||||
|
#ifdef CLI11_BOOST_OPTIONAL
|
||||||
|
#include <boost/optional.hpp>
|
||||||
#endif
|
#endif
|
||||||
// [CLI11:verbatim]
|
// [CLI11:verbatim]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user