View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010281CMakeCMakepublic2010-02-12 12:382011-01-31 16:08
ReporterJeremy Nicholl 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0010281: Include paths containing backslashes cause dependency failures
DescriptionI'm using MSYS and I ran into an issue where one of my header files
has the line
#include "foo\bar.h" // Note backslash
In this case, the dependency that gets generated simply appends
"foo\bar.h" to a well-formed MSYS path with forward slashes, and that
seems to mean the file cannot be found.
Additional InformationSee http://www.cmake.org/pipermail/cmake/2010-February/035139.html [^] for the initial discussion.

I was trying to work around the problem by creating a transform rule in CMAKE_INCLUDE_TRANSFORMS, but still having difficulty with it. I'll update this if I find a good workaround.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0024792)
Brad King (manager)
2011-01-17 14:35

I can reproduce the "/path/to/foo\bar.h" in depend.make but it does not actually cause any problems with MSYS make. The build completes and touching bar.h causes dependencies to rescan and the source to recompile.

Still, it makes sense to convert '\' -> '/' as preferred by the tools.
(0024801)
Brad King (manager)
2011-01-17 15:15

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8dc7501d [^]

 Issue History
Date Modified Username Field Change
2010-02-12 12:38 Jeremy Nicholl New Issue
2011-01-17 13:35 David Cole Assigned To => Brad King
2011-01-17 13:35 David Cole Status new => assigned
2011-01-17 14:35 Brad King Note Added: 0024792
2011-01-17 15:15 Brad King Note Added: 0024801
2011-01-17 15:15 Brad King Status assigned => closed
2011-01-17 15:15 Brad King Resolution open => fixed
2011-01-31 16:08 David Cole Fixed in Version => CMake 2.8.4
2011-01-31 16:08 David Cole Target Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team