[CMake] Problem with custom build rule / vcproj & cmake
2.4.3
William A. Hoffman
billlist at nycap.rr.com
Thu Aug 3 08:51:01 EDT 2006
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.
-Bill
More information about the CMake
mailing list