From ce03067859f472a62c594f97414c85ba837edd46 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Fri, 16 Aug 2024 11:45:19 +0200 Subject: [PATCH] Add C++11 requirement to CMake --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d5a858..976738b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,7 @@ target_link_libraries(boost_optional Boost::throw_exception Boost::type_traits ) +target_compile_features(boost_optional INTERFACE cxx_std_11) if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")