From e921da8a83d09d33a22efea5f33fb0a1aedc256a Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sun, 27 Jun 2021 13:45:07 +0300 Subject: [PATCH] Fix `echo` in WinRT header generation Since `echo` is shell command, not executable binary, CMake won't see it. --- nuget.cmake | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/nuget.cmake b/nuget.cmake index 6fc9fd6..b420923 100644 --- a/nuget.cmake +++ b/nuget.cmake @@ -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}