diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e3c544..17ff154 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ # CMakeLists.txt -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.15) project(cpp_template) # Find dependencies provided by vcpkg (via vcpkg.cmake) @@ -9,13 +9,13 @@ find_package(fmt CONFIG REQUIRED) # main target add_executable(main) target_sources(main PRIVATE src/main.cpp) -target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3 fmt::fmt) -set_property(TARGET main PROPERTY CXX_STANDARD 20) +target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3 fmt::fmt-header-only) +set_property(TARGET main PROPERTY CXX_STANDARD 23) # tests target add_executable(tests) target_sources(tests PRIVATE src/test.cpp) -target_link_libraries(tests PRIVATE unofficial::sqlite3::sqlite3 fmt::fmt) -set_property(TARGET tests PROPERTY CXX_STANDARD 20) +target_link_libraries(tests PRIVATE unofficial::sqlite3::sqlite3 fmt::fmt-header-only) +set_property(TARGET tests PROPERTY CXX_STANDARD 23) enable_testing() add_test(tests tests) \ No newline at end of file diff --git a/CMakePresets.json b/CMakePresets.json index e971b40..8d14b09 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -1,5 +1,4 @@ { - "$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json", "version": 8, "cmakeMinimumRequired": { "major": 3,