[CMake] Visual Studio: Add file to project without compiling it

Eric Noulard eric.noulard at gmail.com
Thu Oct 23 08:43:42 EDT 2008


2008/10/22 Eric Noulard <eric.noulard at gmail.com>:
> Hi Matthias,
>
> Would you try to build the attached project with your configuration
> and tell whether if the IDL file shows up in the IdlSymbols library?

I've just made a test with the attached file on Windows 2000 + Visual
Studio 2006
and I do get the same error.
Visual Studio is trying to compile the IDL file with the "midl" compiler
even if I put

set_source_files_properties(<yourfile.idl> PROPERTIES HEADER_FILE_ONLY TRUE)

I did open a bug for this:
http://public.kitware.com/Bug/view.php?id=7845

-- 
Erk


More information about the CMake mailing list