Skip to content

Commit

Permalink
refactor(cmake): disable CPM_DOWNLOAD_ALL in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 23, 2024
1 parent 7bf9fb6 commit 5da2d9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ jobs:
- name: 🛠️ Use VTK-Python Libs
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_VTK_PYTHON_LIBS=ON"/g' pyproject.toml
# sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_PACKAGE_PYTHON=ON"/g' pyproject.toml
# sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_VTK_PYTHON_LIBS=ON"/g' pyproject.toml
sed -i 's/\(DVIENNALS_BUILD_PYTHON=ON"\)/\1,"-DVIENNALS_PACKAGE_PYTHON=ON", "-DVIENNALS_IS_CI=ON"/g' pyproject.toml
cat pyproject.toml
- name: 🏗️ Build Wheels
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ if(VIENNALS_PACKAGE_PYTHON)
"[ViennaLS] Using remote VTK due to 'VIENNALS_PACKAGE_PYTHON', the build will take a long time!"
)

set(CPM_DOWNLOAD_ALL ON)
if (NOT VIENNALS_IS_CI)
set(CPM_DOWNLOAD_ALL ON)
endif()

set(VIENNALS_BUILD_PYTHON ON)
endif()

Expand Down

0 comments on commit 5da2d9b

Please sign in to comment.