View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013467CMakeCMakepublic2012-08-13 22:362016-06-10 14:31
ReporterkMh3Bt2pBM 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformMacbook ProOSMac OSOS Version10.6.8
Product Version 
Target VersionFixed in Version 
Summary0013467: Bug when $ is in the directory path
DescriptionThe 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;
}
TagsNo tags attached.
Attached Files

 Relationships
related to 0013562closedKitware Robot Incorrect Makefiles generated for paths containing '#' 
related to 0013703closedKitware Robot Paths with | character create invalid Makefiles 

  Notes
(0031604)
Brad King (manager)
2012-11-19 08:05

Issues 0013467, 0013562, and 0013703 all require sweeping internal API cleanup to track escaping contexts better.
(0042103)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2012-08-13 22:36 kMh3Bt2pBM New Issue
2012-09-28 16:31 Brad King Relationship added related to 0013562
2012-11-19 08:03 Brad King Relationship added related to 0013703
2012-11-19 08:05 Brad King Note Added: 0031604
2012-11-19 08:05 Brad King Status new => backlog
2016-06-10 14:28 Kitware Robot Note Added: 0042103
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team