MantisBT - CMake
View Issue Details
0015712CMakeCMakepublic2015-08-26 07:332016-06-10 14:31
Michael Priestman 
Kitware Robot 
normalfeatureN/A
closedmoved 
Windows7
CMake 3.3.1 
 
0015712: Add support for preprocessor definitions for Microsoft IDL (MIDL) compiler
There is currently no way (that I can see) of specifying preprocessor definitions to the MIDL. Looking at the Visual Studio 10 generator source code, it never even attempts to write out a "<PreprocessorDefinitions>" tag.

I would have a go at implementing it myself and submitting a patch, but I'm not sure the best way to go about it. Should you do it via "target_compile_definitions" using an "IDL" language tag, then use clOptions.OutputPreprocessorDefinitions(..., "IDL")?
No tags attached.
Issue History
2015-08-26 07:33Michael PriestmanNew Issue
2015-08-27 09:12Brad KingNote Added: 0039337
2016-06-10 14:29Kitware RobotNote Added: 0042827
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0039337)
Brad King   
2015-08-27 09:12   
For the RC language (resource compiler) see cmVisualStudio10TargetGenerator::WriteRCOptions. The IDL language could work the same way. However, support should also be implemented in the other generators (e.g. Ninja and Makefiles).
(0042827)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.