diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-06-06 17:43:46 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-06-06 17:43:46 (GMT) |
commit | c8067b39043b93b2d8e4e57c3f7ed5455c1fbb61 (patch) | |
tree | a7a88de7afb743d2448a9d5fb6ba44f1938eafde /Tests/CMakeTests | |
parent | b4f4a061024d4d73d29d419b0dba8767b16dda18 (diff) | |
download | CMake-c8067b39043b93b2d8e4e57c3f7ed5455c1fbb61.zip CMake-c8067b39043b93b2d8e4e57c3f7ed5455c1fbb61.tar.gz CMake-c8067b39043b93b2d8e4e57c3f7ed5455c1fbb61.tar.bz2 |
ENH: fix it
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r-- | Tests/CMakeTests/IncludeTest.cmake.in | 9 | ||||
-rw-r--r-- | Tests/CMakeTests/ToolchainTest.cmake.in | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/Tests/CMakeTests/IncludeTest.cmake.in b/Tests/CMakeTests/IncludeTest.cmake.in index 08294bb..01cec38 100644 --- a/Tests/CMakeTests/IncludeTest.cmake.in +++ b/Tests/CMakeTests/IncludeTest.cmake.in @@ -8,11 +8,11 @@ set(fileOne "${_includedFile}") set(fileTwo "${CMAKE_ROOT}/Modules/CMake.cmake") if(WIN32) string(TOLOWER "${fileOne}" fileOne) - string(TOLOWER "${fileTwo}" fileOne) + string(TOLOWER "${fileTwo}" fileTwo) endif(WIN32) if(NOT "${fileOne}" STREQUAL "${fileTwo}") - message(FATAL_ERROR "Wrong CMake.cmake was included: \"${$fileOne}\" expected \"${$fileTwo}\"") + message(FATAL_ERROR "Wrong CMake.cmake was included: \"${fileOne}\" expected \"${fileTwo}\"") endif(NOT "${fileOne}" STREQUAL "${fileTwo}") # this one must return NOTFOUND in _includedFile @@ -28,9 +28,10 @@ set(fileOne "${_includedFile}") set(fileTwo "${CMAKE_ROOT}/Modules/CMake.cmake") if(WIN32) string(TOLOWER "${fileOne}" fileOne) - string(TOLOWER "${fileTwo}" fileOne) + string(TOLOWER "${fileTwo}" fileTwo) endif(WIN32) + if(NOT "${fileOne}" STREQUAL "${fileTwo}") - message(FATAL_ERROR "Wrong CMake.cmake was included: \"${$fileOne}\" expected \"${$fileTwo}\"") + message(FATAL_ERROR "Wrong CMake.cmake was included: \"${fileOne}\" expected \"${fileTwo}\"") endif(NOT "${fileOne}" STREQUAL "${fileTwo}") diff --git a/Tests/CMakeTests/ToolchainTest.cmake.in b/Tests/CMakeTests/ToolchainTest.cmake.in index 361d698..bf0f1c2 100644 --- a/Tests/CMakeTests/ToolchainTest.cmake.in +++ b/Tests/CMakeTests/ToolchainTest.cmake.in @@ -80,11 +80,11 @@ set(fileOne "${_INCLUDED_TOOLCHAIN_FILE}") set(fileTwo "${MY_SOURCE_DIR}/DummyToolchain.cmake") if(WIN32) string(TOLOWER "${fileOne}" fileOne) - string(TOLOWER "${fileTwo}" fileOne) + string(TOLOWER "${fileTwo}" fileTwo) endif(WIN32) if(NOT "${fileOne}" STREQUAL "${fileTwo}") - message(FATAL_ERROR "Wrong toolchain was loaded: \"${$fileOne}\" expected \"${$fileTwo}\"") + message(FATAL_ERROR "Wrong toolchain was loaded: \"${fileOne}\" expected \"${fileTwo}\"") endif(NOT "${fileOne}" STREQUAL "${fileTwo}") # check that CMAKE_HOST_SYSTEM_XXX and _SYSTEM_xxx detected above are identical |