force specific c++ version

my use std::filesystem requires at least C++17
This commit is contained in:
AustrianToast 2024-02-14 16:05:55 +01:00
parent ae66a0d641
commit 60aac542cd
No known key found for this signature in database
GPG Key ID: 8086574D3AAF2453

View File

@ -1,3 +1,6 @@
cmake_minimum_required(VERSION 3.28)
project(chksum)
project(chksum VERSION 0.2)
add_executable(chksum src/main.cpp src/fs_reader.cpp)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)