[geos-commits] [SCM] GEOS branch master updated. cc3dfc922408565fcda955882232b21a0c8e2220

git at osgeo.org git at osgeo.org
Mon Jan 11 18:50:42 PST 2021


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  cc3dfc922408565fcda955882232b21a0c8e2220 (commit)
      from  a03a9ec61629aa68d6f78ff514e759a10db60fcf (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 cc3dfc922408565fcda955882232b21a0c8e2220
Author: Daniel Baston <dbaston at gmail.com>
Date:   Mon Jan 11 20:00:29 2021 -0500

    [CMake] Make sure that assert() is disabled for any non-Debug build.
    
    This is intended to cover the case where a packager builds with an
    undefined build type in order to have all compiler flags drawn from the
    environment.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 89b05ec..2d3dd8c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -181,6 +181,11 @@ else()
     "GEOS: Function inlining DISABLED")
 endif()
 
+# Make sure NDEBUG is defined so that assert() is disabled for
+# any non-debug build. Use a generator expression so that this
+# works with multi-configuration generators.
+target_compile_definitions(geos_cxx_flags INTERFACE $<$<NOT:$<CONFIG:Debug>>:NDEBUG>)
+
 #-----------------------------------------------------------------------------
 # Target geos_cxx_flags: overlayng code
 #-----------------------------------------------------------------------------

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

Summary of changes:
 CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list