-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CMake Warning FindPythonInterp and FindPythonLibs modules are removed #486
Conversation
Seems that OpenXR-SDK-Source/src/CMakeLists.txt Line 426 in 650f751
|
When using Python3 cmake module, |
Thanks @maksim-petukhov, your suggestion worked. |
An issue (number 2326) has been filed to correspond to this pull request in the internal Khronos GitLab (Khronos members only: KHR:openxr/openxr#2326 ), to facilitate working group processes. This GitHub pull request will continue to be the main site of discussion. |
Will this work as far back as CMake 3.16? edit: ah, the deprecation started in 3.12, so apparently it is fine, oops. We were holding the line at 3.10 for a long time. |
1d4be37
to
b3d23b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! I have squashed your commits, adjusted the commit message, added a changelog fragment, and fixed the CMake formatting (apparently the CMake format config file is not shipped in this repo?)
The old style used was deprecated in CMake 3.12, so this should not negatively impact our compatibility (requires 3.16) rpavlik: Only need interpreter, add changelog fragment
When running cmake configure on this project I get:
This is caused by usage of deprecated functionality
find_package(PythonInterp 3)
in the rootCMakeLists.txt
.Relevant CMake documentation: https://cmake.org/cmake/help/latest/policy/CMP0148.html
Here's the new way of finding Python: https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3