[CMake] Bug? Setting properties on non existing source files gives an error

Jonas Bähr jonas.baehr at web.de
Tue Sep 30 07:45:50 EDT 2008


Hi,

I'm using a macro [1] iterating over a list of source files and  
setting a COMPILE_FLAGS property. The problem is that there are some  
files in the list which are generated (Qt moc files, produces by  
QT_WRAP_CPP) which do not exist at cmake time. The  
SET_SOURCE_FILE_PROPERTIES command however, terminates cmake with an  
error on the generated file, saying that he can't find the source  
file. Obviously, it's generated at build time.
Is this a bug or am I missing something? The original CMakeList.txt  
can be found at [2]

I'm using cmake 2.4.8 on gentoo linux.

[1] http://playerstage.svn.sourceforge.net/viewvc/playerstage/code/ 
player/trunk/cmake/UsePlayerC%2B%2B.cmake?revision=6514&view=markup
[2] http://jonas-baehr.de/~jonas/CMakeLists.txt

bye,
Jonas



More information about the CMake mailing list