[CMake] Is HEADER_FILE_ONLY not working in Visual Studio 2010?
Andrea Galeazzi
galeazzi at korg.it
Mon Jan 17 03:35:37 EST 2011
Il 15/01/2011 0.34, Aaron_Wright at selinc.com ha scritto:
> I have a project with custom resource files in it, and unfortunately they
> have the same extension as real resource files, so Visual Studio tries to
> compile them. This obviously doesn't work.
>
> So I set the HEADER_FILE_ONLY property on these files and that fixed it.
>
> Now we're moving to Visual Studio 2010 on Windows 7 32-bit and the problem
> is back. The files are still marked HEADER_FILE_ONLY, but that doesn't
> exclude them from the build anymore. Is there something I can do to get
> the same behavior back I was seeing in Visual Studio 2008? Is there an
> EXCLUDE_FROM_BUILD property? I noticed a bug report on excluding files
> from the build, http://www.itk.org/Bug/view.php?id=6314, but that is
> pretty old.
>
> I'm using CMake 2.8.3
>
> Line from the project:
>
> <ClInclude Include="resources\logging.en.res" />
>
> How can I get it to:
>
> <None Include="resources\logging.en.res">
> <ExcludedFromBuild
> Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
> </None>
>
> Or something similar with the excluded from build set to true.
> ---
> Aaron Wright
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
> __________ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 5792 (20110116) __________
>
> Il messaggio è stato controllato da ESET NOD32 Antivirus.
>
> www.nod32.it
>
>
>
>
That's the bug: http://public.kitware.com/Bug/view.php?id=11404 and was
fixed in 2.8.4... so you can start to try the rc1
--
*KORG ITALY SPA*
*Via Cagiata, 85 -- 60027 Osimo (AN) - ITALY*
*Ph. +39 071 727161 -Fax +39 071 7231228*
*P.IVA e Cod. fiscale IT01460580424*
*Soggetta al controllo della Società KORG Inc. - Giappone*
*Reg. Imprese di n. 212056/1996 del 23/12/96*
*REA di Ancona al n. 133105 del 06/12/96*
*Capitale sociale Euro 814.253,16 i.v.*
Ai sensi del D.Lgs. 30 giugno 2003, n. 196, "Codice in materia di
protezione dei dati personali" si precisa che le informazioni contenute
nel messaggio sono riservate e destinate esclusivamente alla persona od
organizzazione sopra indicata. A chi legge il presente avviso - se non è
l'effettivo destinatario, o un dipendente, o la persona responsabile
della consegna del messaggio - si notifica che sono proibite copie,
distribuzione o divulgazione di quanto in esso contenuto (C.P. 616). Se
questo messaggio Vi è pervenuto per errore, Vi preghiamo di informarci
immediatamente, di non leggerlo e di distruggerlo. Grazie.
/According to Legislative Decree n. 196 of 30 June 2003 about "Personal
Data Protection Code" we point out that the information contained in
this message may be privileged and confidential and is intended only for
the use of the individual entity named above. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution, or copying of
this message is strictly prohibited. If you have received this message
in error, please notify us immediately and destroy the original message.
//Thank you./
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110117/ec63e76b/attachment-0001.htm>
More information about the CMake
mailing list