[Cmake-commits] [cmake-commits] king committed CMakeImportBuildSettings.cmake 1.9 1.10

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Mar 28 14:07:15 EDT 2008


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv4418/Modules

Modified Files:
	CMakeImportBuildSettings.cmake 
Log Message:
ENH: Patch from Mathieu Malaterre to add documentation for his previous patch for CMakeImportBuildSettings.


Index: CMakeImportBuildSettings.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeImportBuildSettings.cmake,v
retrieving revision 1.9
retrieving revision 1.10
diff -C 2 -d -r1.9 -r1.10
*** CMakeImportBuildSettings.cmake	28 Mar 2008 17:26:31 -0000	1.9
--- CMakeImportBuildSettings.cmake	28 Mar 2008 18:07:13 -0000	1.10
***************
*** 120,123 ****
--- 120,131 ----
  
      # 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 "



More information about the Cmake-commits mailing list