summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeImportBuildSettings.cmake
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-05-25 15:20:38 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-05-25 15:20:38 (GMT)
commite67ffe8527f2333039df226927131b73b01407da (patch)
tree42cddd47ab0a3bf3bcbaf629324164f30f4878fd /Modules/CMakeImportBuildSettings.cmake
parentf49e76899cbe9df732c7ef319eaa87f47235fed9 (diff)
downloadCMake-e67ffe8527f2333039df226927131b73b01407da.zip
CMake-e67ffe8527f2333039df226927131b73b01407da.tar.gz
CMake-e67ffe8527f2333039df226927131b73b01407da.tar.bz2
better error message
Diffstat (limited to 'Modules/CMakeImportBuildSettings.cmake')
-rw-r--r--Modules/CMakeImportBuildSettings.cmake20
1 files changed, 17 insertions, 3 deletions
diff --git a/Modules/CMakeImportBuildSettings.cmake b/Modules/CMakeImportBuildSettings.cmake
index e2b3b49..9af301b 100644
--- a/Modules/CMakeImportBuildSettings.cmake
+++ b/Modules/CMakeImportBuildSettings.cmake
@@ -88,10 +88,24 @@ MACRO(CMAKE_IMPORT_BUILD_SETTINGS SETTINGS_FILE)
IF(WIN32)
IF(CMAKE_BUILD_TOOL_MISMATCH)
MESSAGE(SEND_ERROR
+ "This project, ${PROJECT_NAME}, depends on the project "
+ "${CMAKE_BUILD_SETTING_PROJECT_NAME}. Unfortunately "
"${CMAKE_BUILD_SETTING_PROJECT_NAME} was built using "
- "\"${CMAKE_BUILD_TOOL2}\", but ${PROJECT_NAME} "
- "is using \"${CMAKE_BUILD_TOOL1}\". The build will fail. "
- "Try selecting a different CMake Generator.")
+ "\"${CMAKE_BUILD_TOOL2}\", but you are trying to build "
+ "${PROJECT_NAME} using \"${CMAKE_BUILD_TOOL1}\"."
+ "In order for this build to succeed, both projects must be "
+ "built with the same Generator. To change the Generator you "
+ "are using for the project ${PROJECT_NAME}, you must "
+ "delete the cache, and then rerun cmake and this "
+ "time select the same Generator that was used to build "
+ "${CMAKE_BUILD_SETTING_PROJECT_NAME}. If "
+ "${CMAKE_BUILD_SETTING_PROJECT_NAME} was built using a "
+ "generator that you do not have (for example it was built "
+ "with Visual Studio 6 and you only have 7) then you will "
+ "need to select a different version of "
+ "${CMAKE_BUILD_SETTING_PROJECT_NAME} or rebuild "
+ "${CMAKE_BUILD_SETTING_PROJECT_NAME} with the correct "
+ "generator. ")
ENDIF(CMAKE_BUILD_TOOL_MISMATCH)
ENDIF(WIN32)