Skip to content
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

Refactor finding python #3114

Merged
merged 1 commit into from
Nov 24, 2020
Merged

Refactor finding python #3114

merged 1 commit into from
Nov 24, 2020

Conversation

marbre
Copy link
Contributor

@marbre marbre commented Nov 11, 2020

Use find_package(Python ..) if available, instead of the deprecated
find_package(PythonInterp) CMake module.

Use `find_package(Python ..)` if available, instead of the deprecated
`find_package(PythonInterp)` CMake module.
@google-cla google-cla bot added the cla: yes label Nov 11, 2020
@marbre
Copy link
Contributor Author

marbre commented Nov 11, 2020

@ScottTodd: FYI. This might relax the problems we experience within IREE.

@marbre
Copy link
Contributor Author

marbre commented Nov 11, 2020

Another or rather an additional option that relaxes problems for projects embedding googletest would be to disable finding python if gtest_build_tests is to OFF. The py_test function is only called if gtest_build_tests is true.

@CJ-Johnson
Copy link
Contributor

Thank you for this PR! It has now been imported for internal testing. Please do not modify it further as the changes will be overwritten. (342837512)

derekmauro added a commit that referenced this pull request Nov 19, 2020
PiperOrigin-RevId: 342977338
rogeeff added a commit that referenced this pull request Nov 24, 2020
PiperOrigin-RevId: 342977338
@rogeeff rogeeff merged commit 60b8906 into google:master Nov 24, 2020
@marbre
Copy link
Contributor Author

marbre commented Nov 24, 2020

Thanks for merging!

@marbre marbre deleted the FindPython branch November 24, 2020 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants