Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/cxxopts.hpp2
-rw-r--r--src/CMakeLists.txt2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp
index 6fd5be7..d0f9106 100644
--- a/include/cxxopts.hpp
+++ b/include/cxxopts.hpp
@@ -1248,8 +1248,8 @@ value(T& t)
class OptionAdder;
-inline
CXXOPTS_NODISCARD
+inline
const std::string&
first_or_empty(const OptionNames& long_names)
{
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 451d778..3b222e4 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -20,3 +20,5 @@
add_executable(example example.cpp)
target_link_libraries(example cxxopts)
+
+set_property(TARGET example PROPERTY CXX_STANDARD 17)