Skip to content

Commit

Permalink
Fix echo in WinRT header generation
Browse files Browse the repository at this point in the history
Since `echo` is shell command, not executable binary, CMake won't see it.
  • Loading branch information
EricKotato authored and john-preston committed Jun 27, 2021
1 parent 1d59503 commit e921da8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions nuget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e921da8

Please sign in to comment.