[CMake] breakage in recent cmake cvs

Alexander Neundorf a.neundorf-work at gmx.net
Tue Jun 14 13:40:02 EDT 2005


> Von: Andy Cedilnik <andy.cedilnik at kitware.com> 
>  
> Hi Alex, 
>  
> Partially my fault. The problem is that we have not really make any 
> strict rule about what valid variable name is. You are trying to use 
> /home/alex/src/cmakebug/main.cpp_deps as a variable name. I guess that 
> should be ok, but I would suggest the following rule: 
>  
> Variables names have to match the following regular expression: 
> [A-Za-z0-9/._-]+ 
 
But the name  "/home/alex/src/cmakebug/main.cpp_deps" would match this 
regexp, wouldn't it ? 
 
> >MACRO(ADD_FILE_DEPENDANCY file) 
> >   SET(${file}_deps ${${file}_deps} ${ARGN}) 
> >   SET_SOURCE_FILES_PROPERTIES( 
> >      ${file} 
> >      PROPERTIES 
> >      OBJECT_DEPENDS 
> >      "${${file}_deps}" 
> >   ) 
> >ENDMACRO(ADD_FILE_DEPENDANCY) 
 
This macro is intended to create a unique variable name for each file. 
The file name contains '/'. Do you see another way to add more than one 
file dependencies to a source file ? 
I really need this. 
 
Bye 
Alex 
 

-- 
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++


More information about the CMake mailing list