diff options
| author | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-06 19:33:00 +0100 |
|---|---|---|
| committer | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-06 19:33:00 +0100 |
| commit | 1c437aec2fb7203915a647f7e2ceb68f5c58029d (patch) | |
| tree | f8ca3569c79e7a063a6b66f503aee89fb34f5093 | |
| parent | 0bccca9c9752dc27563d8f1da7f15bf043aacd36 (diff) | |
| download | cxxformat-1c437aec2fb7203915a647f7e2ceb68f5c58029d.tar.gz cxxformat-1c437aec2fb7203915a647f7e2ceb68f5c58029d.zip | |
CMake: Add C++20 compile feature to target
| -rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
