[CMake] Problem with custom build rule / vcproj & cmake 2.4.3

Brad King brad.king at kitware.com
Thu Aug 3 09:31:10 EDT 2006


William A. Hoffman wrote:

> At 02:21 AM 8/3/2006, Jan Woetzel wrote:
> 
>>Christian Ehrlicher wrote:
>>
>>
>>>SET(myproject_SRCS
>>>      myproject.cpp
>>>      myproject.jisp
>>>)
>>>
>>>ADD_LIBRARY(myproject SHARED ${_myproject})
>>>
>>>myproject.jisp.rule is created and executed correct, but myproject.jisp doesn't have 'Custom build rule' but 'C/C++ Compilertool' and because of this VS tries to compile myproject.jisp...
>>>
>>>It works fine with 2.4.2 and 2.4.3 + NMake Makefiles. It also works fine when I rename myproject.jisp to myproject_.jisp (any name other than one of the real sourcefiles)
>>>
>>
>>The problem is possibly related to bug report #3565.
> 
> 
> It is the same bug. The work around is this:
> 
> SET_SOURCE_FILES_PROPERTIES(myproject.jips PROPERTIES HEADER_FILE_ONLY TRUE)
> 
> I just checked and for this case it is NOT fixed in CVS.
> I think it was only fixed for .hh files.  I will look into a fix today.

It is now fixed for all files of unknown source extension.  The same 
code that the Makefile generator uses to determine whether to compile a 
source file is now used.  The fix will be in 2.4.4.

-Brad



More information about the CMake mailing list