Skip to content

Commit

Permalink
use -DPYTHON_EXECUTABLE instead of -DPython3_EXECUTABLE to control Py…
Browse files Browse the repository at this point in the history
…thon version used by CMake when building ESPResSo
  • Loading branch information
boegel committed Oct 10, 2023
1 parent 7ba0007 commit 66cf178
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ dependencies = [
]

configopts = ' -DCMAKE_SKIP_RPATH=OFF -DWITH_TESTS=ON -DWITH_CUDA=ON'
configopts += ' -DPython3_EXECUTABLE=$EBROOTPYTHON/bin/python ' # Make sure the right python is used
# make sure the right Python is used (note: -DPython3_EXECUTABLE or -DPython_EXECUTABLE does not work!)
configopts += ' -DPYTHON_EXECUTABLE=$EBROOTPYTHON/bin/python '

runtest = 'check_unit_tests && make check_python'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ dependencies = [
]

configopts = ' -DCMAKE_SKIP_RPATH=OFF -DWITH_TESTS=ON -DWITH_CUDA=OFF'
configopts += ' -DPython3_EXECUTABLE=$EBROOTPYTHON/bin/python ' # Make sure the right python is used
# make sure the right Python is used (note: -DPython3_EXECUTABLE or -DPython_EXECUTABLE does not work!)
configopts += ' -DPYTHON_EXECUTABLE=$EBROOTPYTHON/bin/python '

runtest = 'check_unit_tests && make check_python'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ dependencies = [
]

configopts = ' -DCMAKE_SKIP_RPATH=OFF -DWITH_TESTS=ON -DWITH_CUDA=ON'
configopts += ' -DPython3_EXECUTABLE=$EBROOTPYTHON/bin/python ' # Make sure the right python is used
# make sure the right Python is used (note: -DPython3_EXECUTABLE or -DPython_EXECUTABLE does not work!)
configopts += ' -DPYTHON_EXECUTABLE=$EBROOTPYTHON/bin/python '

runtest = 'check_unit_tests && make check_python'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ dependencies = [
]

configopts = ' -DCMAKE_SKIP_RPATH=OFF -DWITH_TESTS=ON -DWITH_CUDA=OFF'
configopts += ' -DPython3_EXECUTABLE=$EBROOTPYTHON/bin/python ' # Make sure the right python is used
# make sure the right Python is used (note: -DPython3_EXECUTABLE or -DPython_EXECUTABLE does not work!)
configopts += ' -DPYTHON_EXECUTABLE=$EBROOTPYTHON/bin/python '

runtest = 'check_unit_tests && make check_python'

Expand Down

0 comments on commit 66cf178

Please sign in to comment.