update minimum cmake version (#499)

* update minimum cmake version to 3.5
* add '-DCMAKE_POLICY_VERSION_MINIMUM=3.5' to appimage workflow
* add '-DCMAKE_POLICY_VERSION_MINIMUM=3.5' to appimage workflow
This commit is contained in:
MihailRis 2025-04-02 13:25:02 +03:00 committed by GitHub
parent 0042d8a60c
commit 149d095e6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -32,11 +32,11 @@ jobs:
# install EnTT
git clone https://github.com/skypjack/entt.git
cd entt/build
cmake -DCMAKE_BUILD_TYPE=Release -DENTT_INSTALL=on ..
cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release -DENTT_INSTALL=on ..
sudo make install
cd ../..
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_APPDIR=1 -DVOXELENGINE_BUILD_TESTS=ON
run: cmake -S . -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release -DVOXELENGINE_BUILD_APPDIR=1 -DVOXELENGINE_BUILD_TESTS=ON
- name: Build
run: cmake --build build -t install
- name: Run tests

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.26)
cmake_minimum_required(VERSION 3.5)
project(VoxelEngine)
set(CMAKE_CXX_STANDARD 17)