MantisBT - CMake
View Issue Details
0013467CMakeCMakepublic2012-08-13 22:362016-06-10 14:31
kMh3Bt2pBM 
Kitware Robot 
normalminoralways
closedmoved 
Macbook ProMac OS10.6.8
 
 
0013467: Bug when $ is in the directory path
The following example shows that when '$' is in path, there is a bug in cmake (on Mac OS but not linux).


/tmp/$/foo_build$ cmake ../foo
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- 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: /tmp/$/foo_build
/tmp/$/foo_build$ make
Scanning dependencies of target foo
make[2]: *** No rule to make target `/tmp/foo/main.cpp', needed by
`CMakeFiles/foo.dir/main.cpp.o'. Stop.
make[1]: *** [CMakeFiles/foo.dir/all] Error 2
make: *** [all] Error 2
/tmp/$/foo_build$ cat.sh ../foo/
CMakeLists.txt main.cpp
/tmp/$/foo_build$ cat.sh ../foo/*
==> ../foo/CMakeLists.txt <==
add_executable(foo main.cpp)

==> ../foo/main.cpp <==
int main()
{
  return 0;
}
No tags attached.
related to 0013562closed Kitware Robot Incorrect Makefiles generated for paths containing '#' 
related to 0013703closed Kitware Robot Paths with | character create invalid Makefiles 
Issue History
2012-08-13 22:36kMh3Bt2pBMNew Issue
2012-09-28 16:31Brad KingRelationship addedrelated to 0013562
2012-11-19 08:03Brad KingRelationship addedrelated to 0013703
2012-11-19 08:05Brad KingNote Added: 0031604
2012-11-19 08:05Brad KingStatusnew => backlog
2016-06-10 14:28Kitware RobotNote Added: 0042103
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0031604)
Brad King   
2012-11-19 08:05   
Issues 0013467, 0013562, and 0013703 all require sweeping internal API cleanup to track escaping contexts better.
(0042103)
Kitware Robot   
2016-06-10 14:28   
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.