View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015712CMakeCMakepublic2015-08-26 07:332016-06-10 14:31
ReporterMichael Priestman 
Assigned ToKitware Robot 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionmoved 
PlatformOSWindowsOS Version7
Product VersionCMake 3.3.1 
Target VersionFixed in Version 
Summary0015712: Add support for preprocessor definitions for Microsoft IDL (MIDL) compiler
DescriptionThere 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")?
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0039337)
Brad King (manager)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2015-08-26 07:33 Michael Priestman New Issue
2015-08-27 09:12 Brad King Note Added: 0039337
2016-06-10 14:29 Kitware Robot Note Added: 0042827
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team