From 5a0f2bc43cc887285aff5a7d58ad20e70835bb73 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Tue, 28 Nov 2023 19:01:01 +0300 Subject: [PATCH] Added required C++ features to CMakeLists.txt. --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b6e88a..44fe76b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,21 @@ target_link_libraries(boost_scope Boost::type_traits ) +target_compile_features(boost_scope + INTERFACE + cxx_constexpr + cxx_noexcept + cxx_rvalue_references + cxx_decltype + cxx_alias_templates + cxx_variadic_templates + cxx_variadic_macros + cxx_defaulted_functions + cxx_deleted_functions + cxx_default_function_template_args + cxx_delegating_constructors +) + if (BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") add_subdirectory(test) endif()