summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-06-08 15:41:16 (GMT)
committerBrad King <brad.king@kitware.com>2008-06-08 15:41:16 (GMT)
commit9c8185494bce6c47cf6f269c427fb59cfe574c6b (patch)
tree46a705fe24432d7920a9e3fd96467760ab02e095 /Tests/CMakeTests
parentabb1c0e25e950891caf57d13a55583175729af5b (diff)
downloadCMake-9c8185494bce6c47cf6f269c427fb59cfe574c6b.zip
CMake-9c8185494bce6c47cf6f269c427fb59cfe574c6b.tar.gz
CMake-9c8185494bce6c47cf6f269c427fb59cfe574c6b.tar.bz2
BUG: Fix CMake.FindBase test to normalize paths before comparing.
- Previously the find_* commands did not normalize the search paths - The recent refactoring enabled such normalization - The FindBase test must also normalize before comparing paths
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r--Tests/CMakeTests/FindBaseTest.cmake.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeTests/FindBaseTest.cmake.in b/Tests/CMakeTests/FindBaseTest.cmake.in
index 7030847..fff6d49 100644
--- a/Tests/CMakeTests/FindBaseTest.cmake.in
+++ b/Tests/CMakeTests/FindBaseTest.cmake.in
@@ -1,5 +1,9 @@
set(MY_SOURCE_DIR "@CMAKE_CURRENT_SOURCE_DIR@")
+# The find_* commands do path normalization so we should do so too
+# before comparing results.
+get_filename_component(MY_SOURCE_DIR "${MY_SOURCE_DIR}" ABSOLUTE)
+
set(_HEADER cmake_i_do_not_exist_in_the_system.h)
set(_HEADER_FULL "${MY_SOURCE_DIR}/include/${_HEADER}")