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

git at osgeo.org git at osgeo.org
Fri Jan 29 17:20:03 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  a01c678f25f3da061ecefa7623444c61d6a24c89 (commit)
      from  a0a80ce08a1650e2c57d5ce792f9ba5f7f3be846 (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 a01c678f25f3da061ecefa7623444c61d6a24c89
Author: Daniel Baston <dbaston at gmail.com>
Date:   Fri Jan 29 20:18:39 2021 -0500

    [CMake] Enable "developer mode" from git worktree [ci skip]
    
    This is an easy fix and the risk of accidentally enabling developer mode
    when something called .git exists outside of a git repository seems
    acceptable.
    
    Resolves https://github.com/libgeos/geos/issues/390

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c8b39ba..df264f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
 
 # TODO: Follow CMake detection of git and version tagging
 #       https://gitlab.kitware.com/cmake/cmake/blob/master/Source/CMakeVersionSource.cmake
-if(EXISTS ${CMAKE_SOURCE_DIR}/.git/HEAD)
+if(EXISTS ${CMAKE_SOURCE_DIR}/.git)
   set(GEOS_BUILD_FROM_GIT ON)
 endif()
 

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

Summary of changes:
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list