# Support for disabling \<Midl\> on vcxproj generation

**URL:** https://discourse.cmake.org/t/support-for-disabling-midl-on-vcxproj-generation/14252
**Category:** Code
**Tags:** os:windows, comp:msvc, gen:vs
**Created:** [June 17, 2025, 3:01pm UTC](https://discourse.cmake.org/t/support-for-disabling-midl-on-vcxproj-generation/14252 "2025-06-17T15:01:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![FrayxRulez](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/f/e56c9b/32.png) [@FrayxRulez](https://discourse.cmake.org/u/FrayxRulez)
#### Post date: [June 17, 2025, 3:01pm UTC](https://discourse.cmake.org/t/support-for-disabling-midl-on-vcxproj-generation/14252/1 "2025-06-17T15:01:09Z")

</div>

Hello,  
We’re migrating some project in our pipeline from C++/CX to C++/WinRT.  
Everything is going quite smoothly, apart from the fact that CMake automatically adds tags whenever a \*.idl file is detected and it appears there’s no way to disable this (at least from a brief look at the source code and some research on the web).  
`cppwinrt` package (from either NuGet or vcpkg) is going to fill in these values automatically, but only if they’re empty in the base vcxproj. Default values provided by CMake aren’t really compatible with `cppwinrt`.  
Any chance to get a flag to explicitly disable these, or to get a way to manually configure them?
