Fix CMakeLists.txt so that it will inherit the right python version from anaconda

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-09-13 01:18:09 +02:00
parent 413c8ec72a
commit 14514ce234

View File

@@ -597,7 +597,7 @@ if (COOLPROP_PYTHON_BINARIES)
endif()
add_custom_target(CoolProp
COMMAND ${PYTHON_EXECUTABLE} setup.py ${COOLPROP_PYTHON_BINARY_VERSIONS}
COMMAND python setup.py ${COOLPROP_PYTHON_BINARY_VERSIONS}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/wrappers/Python
)
@@ -612,7 +612,7 @@ if (COOLPROP_PYTHON_PYPI)
endif()
add_custom_target(CoolProp
COMMAND ${PYTHON_EXECUTABLE} prepare_pypi.py ${_AND_UPLOAD} --dist-dir=${CMAKE_INSTALL_PREFIX}/Python
COMMAND python prepare_pypi.py ${_AND_UPLOAD} --dist-dir=${CMAKE_INSTALL_PREFIX}/Python
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/wrappers/Python/pypi
)
endif()