dev-cafe / autocmake

CMake plugin composer.
http://autocmake.org
BSD 3-Clause "New" or "Revised" License
41 stars 18 forks source link

setup not showing the default python interpeter #272

Open miroi opened 1 year ago

miroi commented 1 year ago

Hello !

setup is not showing the default python interpreter on the server - here is the example from DIRAC:

milias@194.160.44.72:~/work/software/theoretical_chemistry/dirac/dirac/../setup --help
.
.
.
--python=<PYTHON_INTERPRETER>          The Python interpreter (development version) to use. [default: ''].
ilias@194.160.44.72:~/work/software/theoretical_chemistry/dirac/dirac/.git grep PYTHON_INTERPRETER
cmake/downloaded/autocmake_python_interpreter.cmake:#   PYTHON_INTERPRETER         - User-set path to the Python interpreter
cmake/downloaded/autocmake_python_interpreter.cmake:#   docopt: "--python=<PYTHON_INTERPRETER> The Python interpreter (development version) to use. [default: '']."
cmake/downloaded/autocmake_python_interpreter.cmake:#   define: "'-DPYTHON_INTERPRETER=\"{0}\"'.format(arguments['--python'])"
cmake/downloaded/autocmake_python_interpreter.cmake:if("${PYTHON_INTERPRETER}" STREQUAL "")
cmake/downloaded/autocmake_python_interpreter.cmake:    if(NOT EXISTS "${PYTHON_INTERPRETER}")
cmake/downloaded/autocmake_python_interpreter.cmake:        find_program(PYTHON_EXECUTABLE NAMES ${PYTHON_INTERPRETER})
cmake/downloaded/autocmake_python_interpreter.cmake:        set(PYTHON_EXECUTABLE "${PYTHON_INTERPRETER}")
setup:  --python=<PYTHON_INTERPRETER>          The Python interpreter (development version) to use. [default: ''].
setup:    command.append('-DPYTHON_INTERPRETER="{0}"'.format(arguments['--python']))
src/pcm/CMakeLists.txt:  -DPYTHON_INTERPRETER=${PYTHON_EXECUTABLE}
bast commented 1 year ago

I will check this. The flag was also reported today to not work.