mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
CMake: Fix WANT_PYTHON_VERSION not always being respected
This commit is contained in:
parent
3104bf3710
commit
a1d43f7b88
@ -171,6 +171,11 @@ if(DEFINED _PREV_WANT_PYTHON_VERSION
|
||||
|
||||
endif()
|
||||
|
||||
if(WANT_PYTHON_VERSION)
|
||||
# A specific version is requested; ensure we get that specific version
|
||||
list(APPEND WANT_PYTHON_VERSION "EXACT")
|
||||
endif()
|
||||
|
||||
get_directory_property(_old_cache_vars CACHE_VARIABLES)
|
||||
find_package(Python ${WANT_PYTHON_VERSION} QUIET COMPONENTS Interpreter Development)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user