diff options
author | Brad King <brad.king@kitware.com> | 2008-03-28 18:07:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-28 18:07:13 (GMT) |
commit | db5582c32da8b9234fa840daf9b8e44daa743cba (patch) | |
tree | 30afc76cdda38093ea67bf5d61da5b2b0e58fb29 /Modules/CMakeImportBuildSettings.cmake | |
parent | 71d292d087cb947c5d85772cbcc5a21f665716d8 (diff) | |
download | CMake-db5582c32da8b9234fa840daf9b8e44daa743cba.zip CMake-db5582c32da8b9234fa840daf9b8e44daa743cba.tar.gz CMake-db5582c32da8b9234fa840daf9b8e44daa743cba.tar.bz2 |
ENH: Patch from Mathieu Malaterre to add documentation for his previous patch for CMakeImportBuildSettings.
Diffstat (limited to 'Modules/CMakeImportBuildSettings.cmake')
-rw-r--r-- | Modules/CMakeImportBuildSettings.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/CMakeImportBuildSettings.cmake b/Modules/CMakeImportBuildSettings.cmake index c3f16de..cad7898 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 " |