From 33c296a44e31f700d5cfad40157469b36a10c6e9 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 29 Jan 2009 11:39:03 -0500 Subject: [PATCH] BUG: fix for #8423 --- Source/cmGetFilenameComponentCommand.cxx | 3 ++- Tests/CMakeTests/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmGetFilenameComponentCommand.cxx b/Source/cmGetFilenameComponentCommand.cxx index d06efe88e..81d019b79 100644 --- a/Source/cmGetFilenameComponentCommand.cxx +++ b/Source/cmGetFilenameComponentCommand.cxx @@ -91,7 +91,8 @@ bool cmGetFilenameComponentCommand } // Collapse the path to its simplest form. - result = cmSystemTools::CollapseFullPath(filename.c_str()); + filename = cmSystemTools::CollapseFullPath(filename.c_str()); + result = cmSystemTools::GetRealPath(filename.c_str()); } else { diff --git a/Tests/CMakeTests/CMakeLists.txt b/Tests/CMakeTests/CMakeLists.txt index 9f91abc82..981653d84 100644 --- a/Tests/CMakeTests/CMakeLists.txt +++ b/Tests/CMakeTests/CMakeLists.txt @@ -14,6 +14,7 @@ AddCMakeTest(VariableWatch "") AddCMakeTest(Include "") AddCMakeTest(FindBase "") AddCMakeTest(Toolchain "") +AddCMakeTest(GetFilenameComponentSymlinks "") SET(GetPrerequisites_PreArgs "-DCTEST_CONFIGURATION_TYPE:STRING=\\\${CTEST_CONFIGURATION_TYPE}"