From 1c437aec2fb7203915a647f7e2ceb68f5c58029d Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Thu, 6 Jan 2022 19:33:00 +0100 Subject: CMake: Add C++20 compile feature to target --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc51032..4e0e9cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ add_library(cxxformat INTERFACE include/cxxformat/string.hpp ) target_include_directories(cxxformat INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include") +target_compile_features(cxxformat INTERFACE cxx_std_20) add_executable(test EXCLUDE_FROM_ALL main.cpp) target_link_libraries(test PRIVATE cxxformat) -- cgit v1.2.3-54-g00ecf