View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007845CMakeCMakepublic2008-10-23 08:362009-01-27 10:27
ReporterEric NOULARD 
Assigned ToBill Hoffman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0007845: IDL files set as "HEADER_ONLY" are compiled by midl in Visual Studio project
DescriptionThe HEADER_ONLY property is not honored
by the Visual Studio Generator for idl files.
If an.idl file is added to library or executable
and if
set_source_files_properties(<idlfile> PROPERTIES HEADER_ONLY TRUE)
is called.

The generated Visual Studio project is trying to compile
the idl file with MS "midl" compiler....

The problem does not occurs with Code::Blocks/MinGW on Windows
nor with any tested Linux generator.

Please find attached a project which exhibits the error.

This error was originally reported by Matthias Riechmann:
http://www.cmake.org/pipermail/cmake/2008-October/024691.html [^]
TagsNo tags attached.
Attached Fileszip file icon IDLs-0.1.1-Source.zip [^] (28,620 bytes) 2008-10-23 08:36
png file icon vs8.png [^] (48,094 bytes) 2008-10-27 12:37

 Relationships

  Notes
(0013938)
Matthias Riechmann (reporter)
2008-10-27 12:37

It took me some time to get an account on this Matis system but thanks to Eric the bug is already reported. I added a screenshot showing Visual Studio's build options. You can see even if setting the IDL file's property PROPERTIES HEADER_ONLY to TRUE, the MIDL compiler is about to be run.
(0014683)
Bill Hoffman (manager)
2009-01-27 10:27

cvs commit -m "BUG: fix for 7845, idl files compile even with headerfile only on" cmLocalVisualStudio7Generator.cxx
Committer: Bill Hoffman <bill.hoffman@kitware.com>
/cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v <-- cmLocalVisualStudio7Generator.cxx
new revision: 1.236; previous revision: 1.235

 Issue History
Date Modified Username Field Change
2008-10-23 08:36 Eric NOULARD New Issue
2008-10-23 08:36 Eric NOULARD File Added: IDLs-0.1.1-Source.zip
2008-10-27 12:37 Matthias Riechmann File Added: vs8.png
2008-10-27 12:37 Matthias Riechmann Note Added: 0013938
2009-01-08 16:00 Bill Hoffman Status new => assigned
2009-01-08 16:00 Bill Hoffman Assigned To => Bill Hoffman
2009-01-27 10:27 Bill Hoffman Note Added: 0014683
2009-01-27 10:27 Bill Hoffman Status assigned => closed
2009-01-27 10:27 Bill Hoffman Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team