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
This commit is contained in:
Brad King 2008-06-08 11:41:16 -04:00
parent abb1c0e25e
commit 9c8185494b

View File

@ -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}")