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

Brad King brad.king at kitware.com
Thu Aug 3 08:58:16 EDT 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.

This is almost certainly the problem.  It is fixed in development CMAke 
and will be fixed in 2.4.4.  As a work-around you can do

SET_SOURCE_FILES_PROPERTIES(myproject.jisp PROPERTIES
   HEADER_FILE_ONLY 1
   )

-Brad


More information about the CMake mailing list