summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-28 14:07:13 -0400
committerBrad King <brad.king@kitware.com>2008-03-28 14:07:13 -0400
commitdb5582c32da8b9234fa840daf9b8e44daa743cba (patch)
tree30afc76cdda38093ea67bf5d61da5b2b0e58fb29
parent71d292d087cb947c5d85772cbcc5a21f665716d8 (diff)
downloadcmake-db5582c32da8b9234fa840daf9b8e44daa743cba.tar.gz
ENH: Patch from Mathieu Malaterre to add documentation for his previous patch for CMakeImportBuildSettings.
-rw-r--r--Modules/CMakeImportBuildSettings.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/CMakeImportBuildSettings.cmake b/Modules/CMakeImportBuildSettings.cmake
index c3f16dee50..cad78980b2 100644
--- a/Modules/CMakeImportBuildSettings.cmake
+++ b/Modules/CMakeImportBuildSettings.cmake
@@ -119,6 +119,14 @@ MACRO(CMAKE_IMPORT_BUILD_SETTINGS SETTINGS_FILE)
ENDIF(WIN32)
# Enforce the C++ compiler setting.
+ # CMAKE_OVERRIDE_COMPILER_MISMATCH allow advanced user to override cmake detection of
+ # compiler mismatch between imported projects. Typical case on UNIX could be:
+ # 1. Compile a project with g++-3.3 while the imported project was configured
+ # using the 'c++' alias (which at the time meant g++-3.3)
+ # 2. This variable also becomes handy when the project your are importing has been
+ # compiled with a compiler you do not have access to, but offer a compatible ABI with
+ # yours.
+ # WARNING: Do not use this variable with C++ compiler with incompatible ABI
IF(CMAKE_CXX_COMPILER_MISMATCH AND NOT CMAKE_OVERRIDE_COMPILER_MISMATCH)
MESSAGE("Warning: CMake is forcing CMAKE_CXX_COMPILER to "
"\"${CMAKE_BUILD_SETTING_CXX_COMPILER}\" to match that imported "