[geos-commits] [SCM] geos branch master updated. 6932138816c720c5b90dd7490541274e40fb50f1

git at osgeo.org git at osgeo.org
Thu Sep 7 00:07:00 PDT 2017


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 "geos".

The branch, master has been updated
       via  6932138816c720c5b90dd7490541274e40fb50f1 (commit)
      from  16183469312aef329c096f1b8a5d95521575a9d8 (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 -----------------------------------------------------------------
commit 6932138816c720c5b90dd7490541274e40fb50f1
Author: Mateusz Loskot <mateusz at loskot.net>
Date:   Thu Sep 7 09:06:07 2017 +0200

    [CMake] Set CMAKE_CXX_EXTENSIONS to OFF (require -std=c++11)
    
    Move C++ standard settings to top of CMakeLists.txt.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe6d50d..5fd4c2d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,7 @@
 # See the COPYING file for more information.
 #
 #################################################################################
-cmake_minimum_required(VERSION 3.0.0)
+cmake_minimum_required(VERSION 3.1.3)
 
 if(NOT CMAKE_VERSION)
     set(CMAKE_VERSION
@@ -18,6 +18,21 @@ if(NOT CMAKE_VERSION)
 endif()
 
 #################################################################################
+# Set GEOS project
+#################################################################################
+project(GEOS LANGUAGES C CXX)
+
+# Add custom GEOS modules for CMake
+list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules")
+
+#################################################################################
+# Set C++ standard
+#################################################################################
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_EXTENSIONS OFF)
+
+#################################################################################
 # Setup GEOS version
 #################################################################################
 
@@ -48,14 +63,6 @@ if (NOT WIN32)
 endif()
 
 #################################################################################
-# Set GEOS project
-#################################################################################
-project(GEOS LANGUAGES C CXX)
-
-# Add custom GEOS modules for CMake
-list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules")
-
-#################################################################################
 # Check custom global options
 #################################################################################
 
@@ -94,10 +101,6 @@ endif()
 #################################################################################
 # Setup C/C++ compiler options
 #################################################################################
-set(CMAKE_CXX_STANDARD 11)
-set(CMAKE_CXX_STANDARD_REQUIRED ON)
-#set(CMAKE_CXX_EXTENSIONS OFF)
-
 if(NOT MSVC_IDE)
   if(NOT CMAKE_BUILD_TYPE)
     set(CMAKE_BUILD_TYPE Debug CACHE STRING

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

Summary of changes:
 CMakeLists.txt |   29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)


hooks/post-receive
-- 
geos


More information about the geos-commits mailing list