diff options
author | Brad King <brad.king@kitware.com> | 2006-10-16 19:18:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-16 19:18:03 (GMT) |
commit | 30235517f81ed7ef8ff8e58685e786da472bf0d6 (patch) | |
tree | c8c2162c4b697b476e2de36b4153d22fbfe0d274 /Source/cmGetDirectoryPropertyCommand.cxx | |
parent | 49bf0b9e3d48dd650daa924a238fccc1bc3324d7 (diff) | |
download | CMake-30235517f81ed7ef8ff8e58685e786da472bf0d6.zip CMake-30235517f81ed7ef8ff8e58685e786da472bf0d6.tar.gz CMake-30235517f81ed7ef8ff8e58685e786da472bf0d6.tar.bz2 |
BUG: Need to collapse path argument to get_directory_property. This addresses bug#3847.
Diffstat (limited to 'Source/cmGetDirectoryPropertyCommand.cxx')
-rw-r--r-- | Source/cmGetDirectoryPropertyCommand.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGetDirectoryPropertyCommand.cxx b/Source/cmGetDirectoryPropertyCommand.cxx index 8d08c6b..278e2ae 100644 --- a/Source/cmGetDirectoryPropertyCommand.cxx +++ b/Source/cmGetDirectoryPropertyCommand.cxx @@ -53,6 +53,10 @@ bool cmGetDirectoryPropertyCommand::InitialPass( sd += "/"; sd += *i; } + + // The local generators are associated with collapsed paths. + sd = cmSystemTools::CollapseFullPath(sd.c_str()); + // lookup the makefile from the directory name cmLocalGenerator *lg = this->Makefile->GetLocalGenerator()->GetGlobalGenerator()-> |