View | Details | Raw Unified | Return to bug 239310
Collapse All | Expand All

(-)files/patch-cmake_os_FreeBSD.cmake (+15 lines)
Line 0 Link Here
1
--- cmake/os/FreeBSD.cmake.orig	2019-07-19 15:13:48 UTC
2
+++ cmake/os/FreeBSD.cmake
3
@@ -30,6 +30,12 @@ IF(NOT FORCE_UNSUPPORTED_COMPILER)
4
     IF(NOT HAVE_SUPPORTED_CLANG_VERSION)
5
       MESSAGE(FATAL_ERROR "Clang 3.3 or newer is required!")
6
     ENDIF()
7
+  ELSEIF(CMAKE_COMPILER_IS_GNUCC)
8
+    EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} -dumpversion
9
+                    OUTPUT_VARIABLE GCC_VERSION)
10
+    IF(GCC_VERSION VERSION_LESS 4.4)
11
+      MESSAGE(FATAL_ERROR "GCC 4.4 or newer is required!")
12
+    ENDIF()
13
   ELSE()
14
     MESSAGE(FATAL_ERROR "Unsupported compiler!")
15
   ENDIF()

Return to bug 239310