mirror of
https://github.com/panda3d/panda3d.git
synced 2025-12-20 14:09:54 -06:00
CMake: Fix WANT_PYTHON_VERSION not always being respected
This commit is contained in:
@@ -171,6 +171,11 @@ if(DEFINED _PREV_WANT_PYTHON_VERSION
|
|||||||
|
|
||||||
endif()
|
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)
|
get_directory_property(_old_cache_vars CACHE_VARIABLES)
|
||||||
find_package(Python ${WANT_PYTHON_VERSION} QUIET COMPONENTS Interpreter Development)
|
find_package(Python ${WANT_PYTHON_VERSION} QUIET COMPONENTS Interpreter Development)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user