[CMake] INL files
Brad King
brad.king at kitware.com
Sun Oct 15 10:49:40 EDT 2006
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
More information about the CMake
mailing list