summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/IncludeTest.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeTests/IncludeTest.cmake.in')
-rw-r--r--Tests/CMakeTests/IncludeTest.cmake.in9
1 files changed, 5 insertions, 4 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}")