blob: 34c6c76ea9da1be7de841e8f8f7dcabe873311b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff -purN a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
--- a/openvdb/CMakeLists.txt 2016-11-16 20:24:17.000000000 +0000
+++ b/openvdb/CMakeLists.txt 2017-01-09 13:46:00.000000000 +0000
@@ -426,10 +426,11 @@ IF ( OPENVDB_BUILD_PYTHON_MODULE )
ADD_TEST ( pytest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/python/test/TestOpenVDB.py )
SET_TESTS_PROPERTIES ( pytest PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}")
+ SET ( PYOENVDB_INSTALL_DIRECTORY lib/python${OPENVDB_PYTHON_VERSION_MAJOR}.${OPENVDB_PYTHON_VERSION_MINOR} CACHE STRING "The directory to install the pyopenvdb.so module.")
INSTALL ( TARGETS
pyopenvdb
DESTINATION
- lib/python${OPENVDB_PYTHON_VERSION_MAJOR}.${OPENVDB_PYTHON_VERSION_MINOR}
+ ${PYOENVDB_INSTALL_DIRECTORY}
)
ENDIF ( OPENVDB_BUILD_PYTHON_MODULE )
|