Re: [CMake] Bug when $ is in the directory path

2012-08-13 Thread Peng Yu
The offending line is this. /tmp/$/build$ grep -H -n '/tmp/$/src/tutorial.cpp' CMakeFiles/tutorial.exe.dir/build.make CMakeFiles/tutorial.exe.dir/build.make:53:CMakeFiles/tutorial.exe.dir/tutorial.cpp.o: /tmp/$/src/tutorial.cpp This is obviously a bug in cmake but not a bug in make, as special

Re: [CMake] Bug when $ is in the directory path

2012-08-13 Thread Peng Yu
andreas@warnemuende /tmp/$/foo % cat main.cpp int main() { return 0; } andreas@warnemuende /tmp/$/foo % cat CMakeLists.txt add_executable(foo main.cpp) Can you try that on your side to see wether it works? The error still exits. /tmp/$/foo_build$ cmake ../foo -- The C compiler

[CMake] Bug when $ is in the directory path

2012-08-12 Thread Peng Yu
Hi, I have the following example copied from the cmake Tests/Tutorial directory. cmake works fine. /tmp/xxx/src$ cat.sh * == CMakeLists.txt == cmake_minimum_required (VERSION 2.6) project (Tutorial) # The version number. set (Tutorial_VERSION_MAJOR 1) set (Tutorial_VERSION_MINOR 0) #