MantisBT - CMake
View Issue Details
0014594CMakeCMakepublic2013-11-24 05:112016-06-10 14:31
pioneer3001 
Kitware Robot 
normalminoralways
closedmoved 
Intel AtomDebian 3.10.11-1 (2013-09-10)
CMake 2.8.12 
 
0014594: fails to work on folders like "_$test" and tries to work on "_est" when cmake/make is done out-of-source
I created a folder "_$test" with two folders "source" and "build".

Building with make after cmake in "source" works, but not so if I do both steps in "build".

But if I change the name "_$test" to "a" or "@" then it works in "build" too.

This means if folder names contain a "$", then "cmake ...; make" does work in-source, but not out-of-source.
Here is what I did for out-of-source in bash:

xxx@debian:~/Desktop/test_cmake/_$test/build$ ls ../source/
CMakeLists.txt main.c main.cpp
xxx@debian:~/Desktop/test_cmake/_$test/build$ cmake ../source/
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xxx/Desktop/test_cmake/_$test/build
xxx@debian:~/Desktop/test_cmake/_$test/build$ make
Scanning dependencies of target main_c
make[2]: *** Keine Regel vorhanden, um das Target »/home/xxx/Desktop/test_cmake/_est/source/main.c«,
  benötigt von »CMakeFiles/main_c.dir/main.c.o«, zu erstellen. Schluss.
make[1]: *** [CMakeFiles/main_c.dir/all] Fehler 2
make: *** [all] Fehler 2
xxx@debian:~/Desktop/test_cmake/_$test/build$

The error in German means that there is no rule for the target ".../_est/...". And this true because the name of the folder is ".../_$test/...".

The "$t" is missing.
No tags attached.
Issue History
2013-11-24 05:11pioneer3001New Issue
2016-06-10 14:29Kitware RobotNote Added: 0042432
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042432)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.