summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeImportBuildSettings.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-09-26 15:15:28 (GMT)
committerBrad King <brad.king@kitware.com>2003-09-26 15:15:28 (GMT)
commita1d61afcf6a35a1db0bfff25ddccf5cc087f71f5 (patch)
treebe33538bc95651c9b47d3a4fc49d52f856598112 /Modules/CMakeImportBuildSettings.cmake
parentab28d3ea6eeac80f803559215ff41460ebfc302a (diff)
downloadCMake-a1d61afcf6a35a1db0bfff25ddccf5cc087f71f5.zip
CMake-a1d61afcf6a35a1db0bfff25ddccf5cc087f71f5.tar.gz
CMake-a1d61afcf6a35a1db0bfff25ddccf5cc087f71f5.tar.bz2
BUG: Comparison of build tool should be case-insensitive.
Diffstat (limited to 'Modules/CMakeImportBuildSettings.cmake')
-rw-r--r--Modules/CMakeImportBuildSettings.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/CMakeImportBuildSettings.cmake b/Modules/CMakeImportBuildSettings.cmake
index f056c2e..e2b3b49 100644
--- a/Modules/CMakeImportBuildSettings.cmake
+++ b/Modules/CMakeImportBuildSettings.cmake
@@ -21,10 +21,12 @@ MACRO(CMAKE_IMPORT_BUILD_SETTINGS SETTINGS_FILE)
SET(CMAKE_BUILD_TOOL1 "")
IF(CMAKE_BUILD_TOOL)
GET_FILENAME_COMPONENT (CMAKE_BUILD_TOOL1 ${CMAKE_BUILD_TOOL} NAME_WE)
+ STRING(TOLOWER ${CMAKE_BUILD_TOOL1} CMAKE_BUILD_TOOL1)
ENDIF(CMAKE_BUILD_TOOL)
SET(CMAKE_BUILD_TOOL2 "")
IF(CMAKE_BUILD_SETTING_BUILD_TOOL)
GET_FILENAME_COMPONENT (CMAKE_BUILD_TOOL2 ${CMAKE_BUILD_SETTING_BUILD_TOOL} NAME_WE)
+ STRING(TOLOWER ${CMAKE_BUILD_TOOL2} CMAKE_BUILD_TOOL2)
ENDIF(CMAKE_BUILD_SETTING_BUILD_TOOL)
STRING(COMPARE NOTEQUAL "x${CMAKE_BUILD_TOOL1}" "x${CMAKE_BUILD_TOOL2}"
CMAKE_BUILD_TOOL_MISMATCH)
@@ -87,8 +89,8 @@ MACRO(CMAKE_IMPORT_BUILD_SETTINGS SETTINGS_FILE)
IF(CMAKE_BUILD_TOOL_MISMATCH)
MESSAGE(SEND_ERROR
"${CMAKE_BUILD_SETTING_PROJECT_NAME} was built using "
- "\"${CMAKE_BUILD_SETTING_BUILD_TOOL}\", but ${PROJECT_NAME} "
- "is using \"${CMAKE_BUILD_TOOL}\". The build will fail. "
+ "\"${CMAKE_BUILD_TOOL2}\", but ${PROJECT_NAME} "
+ "is using \"${CMAKE_BUILD_TOOL1}\". The build will fail. "
"Try selecting a different CMake Generator.")
ENDIF(CMAKE_BUILD_TOOL_MISMATCH)
ENDIF(WIN32)