--- src/python/CMakeLists.txt.orig 2012-06-05 21:44:17.000000000 -0500
+++ src/python/CMakeLists.txt 2012-06-05 21:47:06.000000000 -0500
configure_file( setup.py.tpl setup.py )
-install( DIRECTORY pyflann DESTINATION share/flann/python )
-install( FILES ${CMAKE_CURRENT_BINARY_DIR}/setup.py DESTINATION share/flann/python )
install(CODE "execute_process(
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/setup.py install
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/setup.py install --prefix=@@PREFIX@@ --install-lib=@@PYTHON_LIB@@
WORKING_DIRECTORY \"${CMAKE_CURRENT_SOURCE_DIR}\")")