[cmake-developers] [CMake 0014594]: fails to work on folders like "_$test" and tries to work on "_est" when cmake/make is done out-of-source

Mantis Bug Tracker mantis at public.kitware.com
Sun Nov 24 05:11:50 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14594 
====================================================================== 
Reported By:                pioneer3001
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14594
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-11-24 05:11 EST
Last Modified:              2013-11-24 05:11 EST
====================================================================== 
Summary:                    fails to work on folders like "_$test" and tries to
work on "_est" when cmake/make is done out-of-source
Description: 
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.

Steps to Reproduce: 
Here is what I did for out-of-source in bash:

xxx at debian:~/Desktop/test_cmake/_$test/build$ ls ../source/
CMakeLists.txt  main.c  main.cpp
xxx at 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 at 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 at debian:~/Desktop/test_cmake/_$test/build$



Additional Information: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-11-24 05:11 pioneer3001    New Issue                                    
======================================================================




More information about the cmake-developers mailing list