13 lines
420 B
Diff
13 lines
420 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -15,6 +15,9 @@
|
|
endif()
|
|
|
|
find_package(Python REQUIRED COMPONENTS Interpreter Development)
|
|
+get_filename_component( PYTHON_DIR ${Python_EXECUTABLE} DIRECTORY )
|
|
+get_filename_component( PYTHON_PREFIX "${PYTHON_DIR}/.." REALPATH )
|
|
+string( REPLACE "${PYTHON_PREFIX}/" "" Python_SITEARCH ${Python_SITEARCH} )
|
|
|
|
# SWIGIFY HEADERS
|
|
# doing this with the origin python functions
|