mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
CMake: Fix PYTHON_INCLUDE_DIRS variable when using CMake 3.12+'s FindPython
This commit is contained in:
parent
8610b2fceb
commit
da9bb2aaa2
@ -10,6 +10,7 @@ find_package(Python ${WANT_PYTHON_VERSION} QUIET COMPONENTS Interpreter Developm
|
||||
if(Python_FOUND)
|
||||
set(PYTHON_FOUND ON)
|
||||
set(PYTHON_EXECUTABLE ${Python_EXECUTABLE})
|
||||
set(PYTHON_INCLUDE_DIRS ${Python_INCLUDE_DIRS})
|
||||
else()
|
||||
find_package(PythonInterp ${WANT_PYTHON_VERSION} QUIET)
|
||||
find_package(PythonLibs ${PYTHON_VERSION_STRING} QUIET)
|
||||
|
Loading…
x
Reference in New Issue
Block a user