Fix so python files are installed relative to CMAKE_INSTALL_PREFIX. (#555)
84941ce29 changed this behaviour to always go into the system-wide
python site-packages, which users may not have access to.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c518c4a..d005cd4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,7 @@
add_custom_target("generate_${generator_proto_py_file}" ALL DEPENDS ${generator_proto_py_file})
install(
FILES ${PROJECT_BINARY_DIR}/${generator_proto_py_file}
- DESTINATION ${Python_SITELIB}
+ DESTINATION ${PYTHON_INSTDIR}
)
endforeach()
endif()