Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
60b8906d
Commit
60b8906d
authored
Nov 24, 2020
by
Gennadiy Rozental
Browse files
Merge pull request #3114 from marbre:FindPython
PiperOrigin-RevId: 342977338
parents
36d8eb53
826e9f25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
googletest/cmake/internal_utils.cmake
googletest/cmake/internal_utils.cmake
+7
-1
No files found.
googletest/cmake/internal_utils.cmake
View file @
60b8906d
...
...
@@ -244,7 +244,13 @@ function(cxx_executable name dir libs)
endfunction
()
# Sets PYTHONINTERP_FOUND and PYTHON_EXECUTABLE.
find_package
(
PythonInterp
)
if
(
"
${
CMAKE_VERSION
}
"
VERSION_LESS
"3.12.0"
)
find_package
(
PythonInterp
)
else
()
find_package
(
Python COMPONENTS Interpreter
)
set
(
PYTHONINTERP_FOUND
${
Python_Interpreter_FOUND
}
)
set
(
PYTHON_EXECUTABLE
${
Python_EXECUTABLE
}
)
endif
()
# cxx_test_with_flags(name cxx_flags libs srcs...)
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment