Skip to content

Commit

Permalink
Increment Build System/Compiler Versions ➕➕
Browse files Browse the repository at this point in the history
cmake_minimum_required: VERSION 3.28, CMAKE_C_COMPILER: gcc-14, CMAKE_CXX_COMPILER: g++-14
  • Loading branch information
amanmehara committed Mar 17, 2024
1 parent 427ed02 commit e321111
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/c++_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -S ${{github.workspace}}/C++ -B ${{github.workspace}}/C++/build -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -D CMAKE_C_COMPILER=gcc-10 -D CMAKE_CXX_COMPILER=g++-10
run: cmake -S ${{github.workspace}}/C++ -B ${{github.workspace}}/C++/build -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -D CMAKE_C_COMPILER=gcc-14 -D CMAKE_CXX_COMPILER=g++-14

- name: Build
# Build your program with the given configuration
Expand Down
2 changes: 1 addition & 1 deletion C++/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.25)
cmake_minimum_required (VERSION 3.28)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
10 changes: 5 additions & 5 deletions C++/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"configurePresets": [
{
"name": "linux",
"displayName": "GCC 12",
"description": "Using compilers: C = /usr/bin/gcc-12, CXX = /usr/bin/g++-12",
"displayName": "GCC 14",
"description": "Using compilers: C = /usr/bin/gcc-14, CXX = /usr/bin/g++-14",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "/usr/bin/gcc-12",
"CMAKE_CXX_COMPILER": "/usr/bin/g++-12"
"CMAKE_C_COMPILER": "/usr/bin/gcc-14",
"CMAKE_CXX_COMPILER": "/usr/bin/g++-14"
}
}
]
Expand Down

0 comments on commit e321111

Please sign in to comment.