Skip to content

Commit 38e28da

Browse files
committed
Fix CMake build
1 parent 8097b91 commit 38e28da

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ jobs:
1919
- run: cmake --build cpp_build --config Release
2020
- run: cpp_build\Release\ExternalLibraryTest.exe
2121
- run: |
22-
$python_home = "${{ env.Python_ROOT_DIR }}" -replace "\\", "/"
23-
cmake . -G "Visual Studio 17 2022" -Bpython_build -DEXTERNAL_LANGUAGE=Python -DPYTHON_HOME="$python_home"
22+
$python_exe = where python
23+
$python_exe = $python_exe -replace "\\", "/"
24+
cmake . -G "Visual Studio 17 2022" -B python_build -D EXTERNAL_LANGUAGE=Python -D PYTHON_EXE="$python_exe"
2425
- run: cmake --build python_build --config Release
2526
- run: python -m pip install -e Python
2627
- run: python_build\Release\ExternalLibraryTest.exe

0 commit comments

Comments
 (0)