diff --git a/CMakeLists.txt b/CMakeLists.txt index fe95f11..eb9ba62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,9 @@ +# Generated by `boostdep --cmake program_options` # Copyright 2020, 2021 Peter Dimov # Distributed under the Boost Software License, Version 1.0. # https://www.boost.org/LICENSE_1_0.txt -cmake_minimum_required(VERSION 3.5...3.16) +cmake_minimum_required(VERSION 3.8...3.20) project(boost_program_options VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) @@ -42,10 +43,11 @@ target_link_libraries(boost_program_options Boost::tokenizer ) +target_compile_features(boost_program_options PUBLIC cxx_std_11) + target_compile_definitions(boost_program_options PUBLIC BOOST_PROGRAM_OPTIONS_NO_LIB - # Source files already define BOOST_PROGRAM_OPTIONS_SOURCE - # PRIVATE BOOST_PROGRAM_OPTIONS_SOURCE + PRIVATE BOOST_PROGRAM_OPTIONS_SOURCE ) if(BUILD_SHARED_LIBS)