Use BUILD_PREFIX to find Python
@@ -34,8 +34,8 @@ cmake -DBUILD_DEMOS:BOOL=OFF \
-DENABLE_MODULE_OGRE:BOOL=OFF \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DPYTHON_EXECUTABLE:FILEPATH=$PYTHON \
- -DPYTHON_INCLUDE_DIR:PATH=$PREFIX/include/python$MY_PY_VER \
- -DPYTHON_LIBRARY:FILEPATH=$PREFIX/lib/${PY_LIB} \
+ -DPYTHON_INCLUDE_DIR:PATH=$BUILD_PREFIX/include/python$MY_PY_VER \
+ -DPYTHON_LIBRARY:FILEPATH=$BUILD_PREFIX/lib/${PY_LIB} \
./..
# Build step
