From 9c8185494bce6c47cf6f269c427fb59cfe574c6b Mon Sep 17 00:00:00 2001 From: Brad King Date: Sun, 8 Jun 2008 11:41:16 -0400 Subject: 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 --- Tests/CMakeTests/FindBaseTest.cmake.in | 4 ++++ 1 file changed, 4 insertions(+) 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}") -- cgit v0.12