Skip to content

Commit

Permalink
Added required C++ features to CMakeLists.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastique committed Nov 28, 2023
1 parent 46cd547 commit 5a0f2bc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 5a0f2bc

Please sign in to comment.