[Cmake-commits] CMake branch, next, updated. v2.8.1-1508-ge548a88

Bill Hoffman bill.hoffman at kitware.com
Fri Jun 25 12:57:47 EDT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  e548a88579a021598bcf0fc703246d265e7cc605 (commit)
       via  696a0af22022c6d629d67fcff2c7e779c917e187 (commit)
      from  358773feafe7acb4305038ed53d79c854348bc2d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e548a88579a021598bcf0fc703246d265e7cc605
commit e548a88579a021598bcf0fc703246d265e7cc605
Merge: 358773f 696a0af
Author: Bill Hoffman <bill.hoffman at kitware.com>
Date:   Fri Jun 25 12:57:34 2010 -0400

    Merge branch 'disable_gcc33_onfree_bsd' into next


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=696a0af22022c6d629d67fcff2c7e779c917e187
commit 696a0af22022c6d629d67fcff2c7e779c917e187
Author: Bill Hoffman <bill.hoffman at kitware.com>
Date:   Fri Jun 25 12:54:16 2010 -0400

    Disable gcc 33 on OpenBSD because it crashes CPack by default.
    
    Make sure no one tries to use gcc 33 based tools to build CMake.
    This is because a cpack test failed with a crash.  The crash
    seems to be caused by the stack checking code on by default in
    OpenBSD.  The crash is in some stl code.  The problem is fixed
    with newer gcc compilers on OpenBSD.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bd90163..8b41cc3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,6 +17,21 @@ ENDIF(COMMAND CMAKE_POLICY)
 
 MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)
 
+IF(CMAKE_CXX_PLATFORM_ID MATCHES "OpenBSD")
+  EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER}
+    ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
+    OUTPUT_VARIABLE _GXX_VERSION
+  )
+  STRING(REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2"
+    _GXX_VERSION_SHORT ${_GXX_VERSION})
+  IF(_GXX_VERSION_SHORT EQUAL 33)
+    MESSAGE(FATAL_ERROR
+      "GXX 3.3 on OpenBSD is known to cause CPack to Crash.\n"
+      "Please use GXX 4.2 or greater to build CMake on OpenBSD\n"
+      "${CMAKE_CXX_COMPILER} version is: ${_GXX_VERSION}")
+  ENDIF()
+ENDIF()
+
 # Allow empty endif() and such with CMake 2.4.
 SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)
 

-----------------------------------------------------------------------

Summary of changes:
 CMakeLists.txt |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list