2
0
mirror of https://github.com/boostorg/scope.git synced 2026-01-19 04:42:10 +00:00

Added required C++ features to CMakeLists.txt.

This commit is contained in:
Andrey Semashev
2023-11-28 19:01:01 +03:00
parent 46cd547bb4
commit 5a0f2bc43c

View File

@@ -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()