mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
FindPython: reduces consumption of resources
Stores more information in the cache to reduce the number of sub-processes required on subsequent find_package calls. Fixes: #20337
This commit is contained in:
@@ -10,6 +10,7 @@ if (NOT Python3_FOUND)
|
||||
endif()
|
||||
|
||||
set (Python3_VIRTUAL_ENV "${CMAKE_CURRENT_BINARY_DIR}/py3venv")
|
||||
file (REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}/py3venv")
|
||||
|
||||
execute_process (COMMAND "${Python3_EXECUTABLE}" -m venv "${Python3_VIRTUAL_ENV}"
|
||||
RESULT_VARIABLE result
|
||||
|
||||
Reference in New Issue
Block a user