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 f16a085 commit ce02148Copy full SHA for ce02148
CMakeLists.txt
@@ -284,6 +284,10 @@ endif()
284
# Find SWIG
285
find_package(SWIG 4.0 COMPONENTS python)
286
if(SWIG_FOUND)
287
+ execute_process(COMMAND ${Python3_EXECUTABLE} -c "import site; print(site.getsitepackages()[0])" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
288
+ if(NOT DEFINED PYTHON_SITE_PACKAGES)
289
290
+ endif()
291
# https://discourse.cmake.org/t/find-package-python3-is-not-finding-the-correct-python/10563/8
292
set(Python3_FIND_STRATEGY LOCATION)
293
set(Python3_FIND_UNVERSIONED_NAMES FIRST)
0 commit comments