[geos-commits] [SCM] GEOS branch master updated. 98594fd421edad01c73a78148595a1fbc6a0e14f
git at osgeo.org
git at osgeo.org
Fri Sep 13 14:00:11 PDT 2019
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 98594fd421edad01c73a78148595a1fbc6a0e14f (commit)
from f61d6572579ead3f0ac24c44ebc1acfbe843d497 (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 98594fd421edad01c73a78148595a1fbc6a0e14f
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Sep 13 13:59:34 2019 -0700
Use Release as default cmake build instead of Debug
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9045f78..e3752d2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,9 @@
# modes for specific C/C++ language standard levels.
cmake_minimum_required(VERSION 3.8)
+# Default to release build so packagers don't release debug builds
+set(DEFAULT_BUILD_TYPE Release)
+
# Require CMake 3.13+ with VS generator for complete support of VS versions
# and support by AppVeyor.
if(${CMAKE_GENERATOR} MATCHES "Visual Studio")
@@ -27,7 +30,14 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.git/HEAD)
set(GEOS_BUILD_FROM_GIT ON)
endif()
-message(STATUS "GEOS: Build type: ${CMAKE_BUILD_TYPE}")
+# Make sure we know our build type
+if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE ${DEFAULT_BUILD_TYPE})
+ message(STATUS "GEOS: Using default build type: ${CMAKE_BUILD_TYPE}")
+else()
+ message(STATUS "GEOS: Build type: ${CMAKE_BUILD_TYPE}")
+endif()
+
#-----------------------------------------------------------------------------
# Options
-----------------------------------------------------------------------
Summary of changes:
CMakeLists.txt | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list