File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 33
33
run : |
34
34
mkdir build
35
35
cd build
36
- cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/.local -DENABLE_PYTHON=True -DPython_EXECUTABLE=${{ matrix.config.py }} -DENABLE_TESTING=Off -DENABLE_SWIG_BUILTIN=${{ matrix.config.swig_builtin }} -DSIMD_EXTENSIONS=native
36
+ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/.local -DENABLE_PYTHON=True -DPython_EXECUTABLE=${{ matrix.config.py }} -DENABLE_TESTING=Off -DENABLE_SWIG_BUILTIN=${{ matrix.config.swig_builtin }} -DSIMD_EXTENSIONS=native -DPython_INSTALL_PACKAGE_DIR=/home/runner/.local/
37
37
- name : Build CRPropa
38
38
run : |
39
39
cd build
Original file line number Diff line number Diff line change @@ -466,9 +466,7 @@ if(ENABLE_PYTHON AND Python_FOUND)
466
466
467
467
468
468
# use Python_INSTALL_PACKAGE_DIR if provided; otherwise, install in Python_SITELIB
469
- if (NOT DEFINED Python_INSTALL_PACKAGE_DIR)
470
- set (Python_INSTALL_PACKAGE_DIR "${Python_SITELIB} " )
471
- endif (NOT DEFINED Python_INSTALL_PACKAGE_DIR)
469
+ set (Python_INSTALL_PACKAGE_DIR "${Python_SITELIB} " CACHE PATH "folder in which the python package is installed" )
472
470
message (STATUS " package install directory: ${Python_INSTALL_PACKAGE_DIR} " )
473
471
474
472
You can’t perform that action at this time.
0 commit comments