Skip to content

Commit

Permalink
feat: Switch to C++17
Browse files Browse the repository at this point in the history
As cpp-sc2 uses it now.

Signed-off-by: Alexander Kurbatov <[email protected]>
  • Loading branch information
alkurbatov committed Jan 1, 2024
1 parent 23ca708 commit 8c7e270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ include(FetchContent)
# Specify output directories.
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin")

# Build with c++14 support, required by sc2api.
set(CMAKE_CXX_STANDARD 14)
# Build with c++17 support, required by sc2api.
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if (MSVC)
# Setup MSVC parallelized builds
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ $ build/bin/CommandCenter Ladder2019Season3/AcropolisLE.SC2Map
```

## Linux
* Install 'gcc-c++' with C++14 support and the 'make' utility.
* Install 'gcc-c++' with C++17 support and the 'make' utility.
* Install [CMake](https://cmake.org/download/).

```bash
Expand Down

0 comments on commit 8c7e270

Please sign in to comment.