mirror of
https://github.com/google/googletest.git
synced 2024-12-27 18:31:21 +08:00
Skip find_package(Python3) when not building tests
#4424 claims this saves several seconds of build time Closes #4424 PiperOrigin-RevId: 587827426 Change-Id: I207779a6539f9af16a39d6b40887770dc930b74f
This commit is contained in:
parent
76bb2afb8b
commit
8760db154a
@ -247,7 +247,9 @@ function(cxx_executable name dir libs)
|
|||||||
${name} "${cxx_default}" "${libs}" "${dir}/${name}.cc" ${ARGN})
|
${name} "${cxx_default}" "${libs}" "${dir}/${name}.cc" ${ARGN})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
if(gtest_build_tests)
|
||||||
find_package(Python3)
|
find_package(Python3)
|
||||||
|
endif()
|
||||||
|
|
||||||
# cxx_test_with_flags(name cxx_flags libs srcs...)
|
# cxx_test_with_flags(name cxx_flags libs srcs...)
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user