Skip to content

Commit 7e2b368

Browse files
authored
fix: check if build.ninja exists to reconfigure cmake (#126)
1 parent b23df52 commit 7e2b368

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/pixi-build-cmake/src/build_script.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake --version
33

44
{# Windows #}
55
{% if build_platform == "windows" -%}
6-
if not exist %SRC_DIR%\..\build\CMakeCache.txt (
6+
if not exist %SRC_DIR%\..\build\build.ninja (
77
cmake %CMAKE_ARGS% ^
88
-GNinja ^
99
-DCMAKE_BUILD_TYPE=Release ^
@@ -20,7 +20,7 @@ cmake --build %SRC_DIR%\..\build --target install
2020

2121
{# Non Windows #}
2222
{% else -%}
23-
if [ ! -f "$SRC_DIR/../build/CMakeCache.txt" ]; then
23+
if [ ! -f "$SRC_DIR/../build/build.ninja" ]; then
2424
cmake $CMAKE_ARGS \
2525
-GNinja \
2626
-DCMAKE_BUILD_TYPE=Release \

0 commit comments

Comments
 (0)