From 4135f98ba556065b4742b9181c8a105d2b27e2c6 Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Fri, 20 Dec 2024 18:32:20 +0100 Subject: [PATCH] Fix dependencies in winmd_from_idl --- cmake/winmd_from_idl.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/winmd_from_idl.cmake b/cmake/winmd_from_idl.cmake index 3a6984b..9715f55 100644 --- a/cmake/winmd_from_idl.cmake +++ b/cmake/winmd_from_idl.cmake @@ -27,6 +27,7 @@ function(winmd_from_idl) find_platform_package_dir(PACKAGE windows.foundation.foundationcontract PATH_VAR metadata_native WINSDK_VERSION ${winmd_from_idl_WINSDK_VERSION}) add_custom_command(OUTPUT "${winmd_from_idl_OUT}" COMMAND ${MIDL} ARGS "${idl_native}" /nologo /winrt /winmd "${winmd_native}" /nomidl /metadata_dir "${metadata_native}" ${midl_args} - MAIN_DEPENDENCY "${MIDL_IDL}" + MAIN_DEPENDENCY "${idl_native}" + DEPENDS "${idl_native}" ) endfunction()