[Cmake-commits] [cmake-commits] king committed FindBaseTest.cmake.in 1.2 1.3
cmake-commits at cmake.org
cmake-commits at cmake.org
Sun Jun 8 11:41:19 EDT 2008
Update of /cvsroot/CMake/CMake/Tests/CMakeTests
In directory public:/mounts/ram/cvs-serv8944/Tests/CMakeTests
Modified Files:
FindBaseTest.cmake.in
Log Message:
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
Index: FindBaseTest.cmake.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeTests/FindBaseTest.cmake.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** FindBaseTest.cmake.in 17 May 2007 17:20:44 -0000 1.2
--- FindBaseTest.cmake.in 8 Jun 2008 15:41:16 -0000 1.3
***************
*** 1,4 ****
--- 1,8 ----
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}")
More information about the Cmake-commits
mailing list