From 6353d7e09181df421f4ae07beba876b1289cb200 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 26 Oct 2023 22:02:57 +0200 Subject: [PATCH 1/2] Use RelWithDebInfo instead of Debug to fix Windows compilation --- pixi.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixi.toml b/pixi.toml index 086f964..e80cf73 100644 --- a/pixi.toml +++ b/pixi.toml @@ -25,9 +25,9 @@ version = "0.1.0" [tasks] # Note: extra CLI argument after `pixi run TASK` are passed to the task cmd. -prepare = "cmake -G Ninja -B build -S . -DCMAKE_BUILD_TYPE=Debug" +prepare = "cmake -G Ninja -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo" clean = { cmd = "rm -rf build bin CMakeFiles/" } -build = { cmd = "mkdir -p bin && cmake --build build --config Debug --target all", depends_on = [ +build = { cmd = "mkdir -p bin && cmake --build build --config RelWithDebInfo --target all", depends_on = [ "prepare", ] } run = { cmd = "build/rerun_ext_example", depends_on = ["build"] } From 63bf6c60823de3e777cf45fab732f77380d1a94d Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 26 Oct 2023 22:03:55 +0200 Subject: [PATCH 2/2] Set policy_max of cmake_minimum_required to 3.27 to avoid CMake warning --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b284a5..72c90e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.16...3.27) project(rerun_external_cpp_proj LANGUAGES CXX)