Ah, good to know.  Thank you for such a quick reply!

-Matt

-----Original Message-----
From: Brad King [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 15, 2006 10:50 AM
To: Matthew Campbell
Cc: [email protected]
Subject: Re: [CMake] INL files

Matthew Campbell wrote:
> We've been converting our build system to cmake and are finding it 
> pretty darn good.  However, I am currently working on a target that has 
> .inl files as we use them instead of putting code directly in the header 
> files.  For some reason, when generating visual studio 2005 project 
> files it attempts to compile the inl files instead of ignoring them.  I 
> am using version 2.4 of cmake and here is an example:

It happens when the .inl file has the same name as another source other 
than the extension.  This is a well-known problem with 2.4.3 and was 
created by the fix to another bug in 2.4.2.  It will be fixed in the 
upcoming 2.4.4 release.  You can work around the problem by doing

SET_SOURCE_FILES_PROPERTIES(myfile.inl PROPERTIES HEADER_FILE_ONLY 1)

After 2.4.4 is out this work-around will not be necessary.

-Brad
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to