[CMake] [2.4.7] - ADD_SUBDIRECTORY unexpected behavior

Bill Hoffman bill.hoffman at kitware.com
Mon Aug 6 16:57:39 EDT 2007


David Blado wrote:
> Hi Bill,
>
> Yes, this worked fine in 2.4.6.
>
> I would think that the case sensitivity would only cause a problem on
> Unix since Windows is case insensitive.
>
> I'm not sure where to specify or why cmake is using 'C' for one of the
> paths and 'c' for the other.
>
> I am setting: SET(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE) so yes,
> the binary directory is empty.  I also went so far as to completely
> remove the source dir and do a fresh checkout of the tree.
>
> I went through my script and changed all occurrences of 'c:' to 'C:' and
> that seems to have solved the problem.  I don't understand why I can't
> use lowercase 'c'.  I didn't have to change any CMakeList.txt files to
> solve this...just changing the script that launches ctest from:
> cd c:\x\y\z to cd C:\x\y\z did the trick.
>   
It is a cmake bug.   CMake is doing a string compare somewhere.  And 
when cmake gets
the current working directory, windows gives back the case that was 
given to cd.

-Bill



More information about the CMake mailing list