[CMake] breakage in recent cmake cvs
Andy Cedilnik
andy.cedilnik at kitware.com
Tue Jun 14 13:12:34 EDT 2005
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/._-]+
How does that sound?
Andy
Alexander Neundorf wrote:
>Hi,
>
>until recently the attached script worked ok, now I get the following
>error message:
>
>syntax error, unexpected cal_SYMBOL, expecting cal_RCURLY (40), when
>parsing string "${/home/alex/src/cmakebug/main.cpp_deps}"
>Syntax error in cmake code at
>
>Is this intended ?
>I just tried cvs up -D "2005-06-10", this version still worked.
>
>Bye
>Alex
>
>
>
>
>------------------------------------------------------------------------
>
>
>
>#add an additional file to the list of files a source file depends on
>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)
>
>ADD_FILE_DEPENDANCY(${CMAKE_CURRENT_SOURCE_DIR}/main.cpp foo.c)
>
>ADD_EXECUTABLE(foo ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
>
>
>------------------------------------------------------------------------
>
>#include <iostream.h>
>
>#int main()
>{
> cout<<"hello world"<<endl;
>}
>
>------------------------------------------------------------------------
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
>
>
--
Andy Cedilnik
Kitware Inc.
More information about the CMake
mailing list