We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c4c460 commit 2fe6579Copy full SHA for 2fe6579
src/python/CMakeLists.txt
@@ -15,7 +15,10 @@ add_test(NAME pywraps2_test COMMAND
15
set_property(TEST pywraps2_test PROPERTY ENVIRONMENT
16
"PYTHONPATH=$ENV{PYTHONPATH}:${PROJECT_BINARY_DIR}/python")
17
18
+set(CMAKE_INSTALL_SITELIBDIR "${Python3_SITELIB}"
19
+ CACHE STRING "Python site-packages installation directory")
20
+
21
# Install the wrapper.
-install(TARGETS _pywraps2 DESTINATION ${Python3_SITELIB})
22
+install(TARGETS _pywraps2 DESTINATION "${CMAKE_INSTALL_SITELIBDIR}")
23
install(FILES "${PROJECT_BINARY_DIR}/python/pywraps2.py"
- DESTINATION ${Python3_SITELIB})
24
+ DESTINATION "${CMAKE_INSTALL_SITELIBDIR}")
0 commit comments