git repos / blockattack-game

commit 66d34b8a

Poul Sander · 2025-09-21 13:07
66d34b8a1bd5ba8f1cdd35b729d9abaa099c0744 patch · browse files
parent dbf0fff92e3e43e44a5ce85ba8f71010b481c419

C++17 support is required. Now reflected in the README and parameters

Changed files

M CHANGELOG.md before
M CMakeLists.txt before
M README.md before
diff --git a/CHANGELOG.md b/CHANGELOG.md index 21ae2d8..831460b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
### Added
### Changed
+ - Now compiled with C++17 standard. Also required.
### Removed
diff --git a/CMakeLists.txt b/CMakeLists.txt index 977a976..1855576 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -60,7 +60,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif()
#Compiler options
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -std=c++11")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -std=c++17")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG} -g -DDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE} -O2")
diff --git a/README.md b/README.md index 6689326..7d64db5 100644 --- a/README.md +++ b/README.md
@@ -17,7 +17,7 @@ Recent Linux version. Target is all current Ubuntu Desktop LTS versions (up to 5
Target is all official supported versions of windows for x86-64 that allows manually installed software. Currently Windows 10+.
## Dependencies
-* A version of g++ with C++11 support. Tested on g++-4.9
+* A version of g++ with C++17 support. Tested on g++-11
* libSDL2
* libSDL2_image
* libSDL2_mixer