1
0
Fork 0

Fix echo in WinRT header generation

Since `echo` is shell command, not executable binary, CMake won't see it.
This commit is contained in:
Eric Kotato 2021-06-27 13:45:07 +03:00 committed by John Preston
parent 1d59503a24
commit e921da8a83

View file

@ -92,14 +92,7 @@ function(nuget_add_winrt target_name)
${winrt_version_test}
COMMAND_ERROR_IS_FATAL ANY
)
execute_process(
COMMAND
echo
${winrt_sdk_version}
OUTPUT_FILE
${sdk_version_test}
COMMAND_ERROR_IS_FATAL ANY
)
file(WRITE ${sdk_version_test} ${winrt_sdk_version})
execute_process(
COMMAND
${CMAKE_COMMAND} -E compare_files ${winrt_version_key} ${winrt_version_test}