deeplearningais / CUV

Matrix library for CUDA in C++ and Python
www.ais.uni-bonn.de
196 stars 48 forks source link

FindPyUblas.cmake: fix Python executable. #8

Closed bchretien closed 9 years ago

bchretien commented 9 years ago

Since Python 3 is the default Python version on some distributions (e.g. Arch Linux), we need to use the CMake variable storing the actual Python executable. Then, to use Python 2, since CMake often mixes up Python 2/3 libraries (even if Python 2 is set in CMakeLists.txt):

cmake .. -DPYTHON_EXECUTABLE=/usr/bin/python2 \
         -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
         -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so
temporaer commented 9 years ago

thanks a lot!