diff options
author | Andreas Mohr <andim2@users.sourceforge.net> | 2013-04-16 14:02:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-05-07 12:42:20 (GMT) |
commit | 2bab472ecb2e5be31ea41e4035c3e4923b42c57c (patch) | |
tree | 20c74de401b939cf975e22bd3c86f777c7c61ffa /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | e619111d91a71c0aa80ddf45d981c8bed51ad805 (diff) | |
download | CMake-2bab472ecb2e5be31ea41e4035c3e4923b42c57c.zip CMake-2bab472ecb2e5be31ea41e4035c3e4923b42c57c.tar.gz CMake-2bab472ecb2e5be31ea41e4035c3e4923b42c57c.tar.bz2 |
VS10: add detailed comment about MIDL processing
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 1cb9f23..e4c508c 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1579,6 +1579,21 @@ void cmVisualStudio10TargetGenerator:: WriteMidlOptions(std::string const& /*config*/, std::vector<std::string> const & includes) { + // This processes *any* of the .idl files specified in the project's file + // list (and passed as the item metadata %(Filename) expressing the rule + // input filename) into output files at the per-config *build* dir + // ($(IntDir)) each. + // + // IOW, this MIDL section is intended to provide a fully generic syntax + // content suitable for most cases (read: if you get errors, then it's quite + // probable that the error is on your side of the .idl setup). + // + // Also, note that the marked-as-generated _i.c file in the Visual Studio + // generator case needs to be referred to as $(IntDir)\foo_i.c at the + // project's file list, otherwise the compiler-side processing won't pick it + // up (for non-directory form, it ends up looking in project binary dir + // only). Perhaps there's something to be done to make this more automatic + // on the CMake side? this->WriteString("<Midl>\n", 2); this->OutputIncludes(includes); this->WriteString("<OutputDirectory>$(IntDir)</OutputDirectory>\n", 3); |