1
0
Fork 0

Always use Python3 cmake package instead of the Python one

This commit is contained in:
Ilya Fedin 2023-06-05 08:44:48 +04:00 committed by John Preston
parent 02e600c6f3
commit a41fa6e140

View file

@ -46,10 +46,10 @@ function(validate_d3d_compiler target_name)
endif() endif()
set(sdk_compiler ${windows_sdk_loc}/Redist/D3D/${modules_subdir}/d3dcompiler_47.dll) set(sdk_compiler ${windows_sdk_loc}/Redist/D3D/${modules_subdir}/d3dcompiler_47.dll)
find_package(Python REQUIRED) find_package(Python3 REQUIRED)
execute_process( execute_process(
COMMAND COMMAND
${Python_EXECUTABLE} ${Python3_EXECUTABLE}
${cmake_helpers_loc}/validate_d3d_compiler.py ${cmake_helpers_loc}/validate_d3d_compiler.py
${sdk_compiler} ${sdk_compiler}
OUTPUT_VARIABLE key OUTPUT_VARIABLE key