We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2372030 commit 3a182b2Copy full SHA for 3a182b2
1 file changed
CMakeLists.txt
@@ -2,9 +2,6 @@ cmake_minimum_required(VERSION 3.16)
2
project(OpenGothicStarter VERSION 0.3.1 LANGUAGES CXX)
3
include(GNUInstallDirs)
4
5
-set(CMAKE_CXX_STANDARD 17)
6
-set(CMAKE_CXX_STANDARD_REQUIRED ON)
7
-
8
option(OGS_STRICT_WARNINGS "Enable strict compiler warnings." ON)
9
option(OGS_WARNINGS_AS_ERRORS "Treat warnings as errors." OFF)
10
option(OGS_EXTRA_WARNINGS "Enable additional warning checks." OFF)
@@ -61,6 +58,7 @@ if(WIN32)
61
58
else()
62
59
add_executable(${PROJECT_NAME} ${SOURCES})
63
60
endif()
+target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
64
65
# Windows-specific settings
66
if(WIN32)
0 commit comments