You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by la...@apache.org on 2022/02/15 03:05:05 UTC

[incubator-pegasus] branch master updated: fix(build): update GCC and CMake checker (#899)

This is an automated email from the ASF dual-hosted git repository.

laiyingchun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new 2998ef0  fix(build): update GCC and CMake checker (#899)
2998ef0 is described below

commit 2998ef044f10e7cabc53263d847ded567c1cc7ad
Author: Smilencer <52...@qq.com>
AuthorDate: Tue Feb 15 11:04:59 2022 +0800

    fix(build): update GCC and CMake checker (#899)
---
 src/CMakeLists.txt | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a3dab2b..2669028 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -15,7 +15,14 @@
 # specific language governing permissions and limitations
 # under the License.
 
-cmake_minimum_required(VERSION 3.5.2)
+cmake_minimum_required(VERSION 3.11.0)
+
+if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+    # require at least gcc 5.4.0
+    if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.4.0)
+        message(FATAL_ERROR "GCC version must be at least 5.4.0!")
+    endif ()
+endif ()
 
 project(pegasus C CXX)
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org