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 504267d commit 806b792Copy full SHA for 806b792
CMakeLists.txt
@@ -284,6 +284,9 @@ endif()
284
# Find SWIG
285
find_package(SWIG 4.0 COMPONENTS python)
286
if(SWIG_FOUND)
287
+ # https://discourse.cmake.org/t/find-package-python3-is-not-finding-the-correct-python/10563/8
288
+ set(Python3_FIND_STRATEGY LOCATION)
289
+ set(Python3_FIND_UNVERSIONED_NAMES FIRST)
290
find_package(Python3 COMPONENTS Interpreter Development)
291
if(PYTHON3_FOUND)
292
set(HAVE_SWIG 1)
0 commit comments