From 38e28da16bef41e9b390f122a6e47a9608235508 Mon Sep 17 00:00:00 2001 From: Torsten Sommer Date: Mon, 28 Apr 2025 11:20:36 +0200 Subject: [PATCH] Fix CMake build --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4dea0f5..a2797b7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,8 +19,9 @@ jobs: - run: cmake --build cpp_build --config Release - run: cpp_build\Release\ExternalLibraryTest.exe - run: | - $python_home = "${{ env.Python_ROOT_DIR }}" -replace "\\", "/" - cmake . -G "Visual Studio 17 2022" -Bpython_build -DEXTERNAL_LANGUAGE=Python -DPYTHON_HOME="$python_home" + $python_exe = where python + $python_exe = $python_exe -replace "\\", "/" + cmake . -G "Visual Studio 17 2022" -B python_build -D EXTERNAL_LANGUAGE=Python -D PYTHON_EXE="$python_exe" - run: cmake --build python_build --config Release - run: python -m pip install -e Python - run: python_build\Release\ExternalLibraryTest.exe