[geos-commits] r4217 - trunk

Mateusz Loskot mateusz at loskot.net
Thu Jun 9 08:34:14 PDT 2016


Author: mloskot
Date: 2016-06-09 08:34:14 -0700 (Thu, 09 Jun 2016)
New Revision: 4217

Modified:
   trunk/CMakeLists.txt
Log:
CI builds (Travis CI, AppVeyor, etc.) perform git clone, not svn checkout.
So, CI environment needs a dummy revision (e.g. 999999) to generate the required header.

Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	2016-06-08 07:53:50 UTC (rev 4216)
+++ trunk/CMakeLists.txt	2016-06-09 15:34:14 UTC (rev 4217)
@@ -264,6 +264,13 @@
 
 if (NOT GEOS_BUILD_PACKAGED)
   message(STATUS "Generating GEOS revision header in ${PROJECT_BINARY_DIR}/geos_svn_revision.h")
+
+  # CI builds (Travis CI, AppVeyor, etc.) perform git clone, not svn checkout.
+  # So, CI environment needs a dummy revision to generate the required header. 
+  if (DEFINED ENV{CI}
+     set(Project_WC_REVISION 999999)
+  endif()
+
   if ( NOT ${Project_WC_REVISION} EQUAL 0 )
      set( GEOS_SVN_REVISION ${Project_WC_REVISION} )
      configure_file (



More information about the geos-commits mailing list