Revision: 70059
          http://sourceforge.net/p/brlcad/code/70059
Author:   starseeker
Date:     2017-08-08 20:26:19 +0000 (Tue, 08 Aug 2017)
Log Message:
-----------
clear empty elements of lists to avoid the need to set CMP0007

Modified Paths:
--------------
    brlcad/trunk/misc/CMake/distcheck_repo_verify.cmake.in

Modified: brlcad/trunk/misc/CMake/distcheck_repo_verify.cmake.in
===================================================================
--- brlcad/trunk/misc/CMake/distcheck_repo_verify.cmake.in      2017-08-08 
19:44:46 UTC (rev 70058)
+++ brlcad/trunk/misc/CMake/distcheck_repo_verify.cmake.in      2017-08-08 
20:26:19 UTC (rev 70059)
@@ -34,11 +34,6 @@
 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 ###
-# Empty elements in lists are of no interest
-if(COMMAND CMAKE_POLICY)
-  CMAKE_POLICY(SET CMP0007 OLD)
-endif(COMMAND CMAKE_POLICY)
-
 # If BRLCAD_BUNDLED_LIBS isn't set to BUNDLED, mention that this might be a 
good idea.
 if(NOT "@BRLCAD_BUNDLED_LIBS@" STREQUAL "BUNDLED")
   message(" ")
@@ -128,6 +123,14 @@
   endforeach(ITEM ${SVN_STATUS})
 
   # Generate a sorted text file with the results of the Subversion list 
processing.
+  set(SVN_NONEMPTY)
+  foreach(svnf ${SVN_FILES})
+    if(NOT "${svnf}" STREQUAL "")
+      list(APPEND SVN_NONEMPTY "${svnf}")
+    endif(NOT "${svnf}" STREQUAL "")
+  endforeach(svnf ${SVN_FILES})
+  string(REGEX REPLACE "^;" "" SVN_FILES "${SVN_FILES}")
+  set(SVN_FILES "${SVN_NONEMPTY}")
   list(SORT SVN_FILES)
   list(REMOVE_DUPLICATES SVN_FILES)
   string(REPLACE ";" "\n" SVN_FILES "${SVN_FILES}")
@@ -223,6 +226,7 @@
 list(REMOVE_DUPLICATES FS_FILE_LIST_P1)
 string(REGEX REPLACE "[^/]*;" ";" FS_FILE_LIST_P2 "${FS_FILE_LIST_P1}")
 string(REPLACE "/;" ";" FS_FILE_LIST_P2 "${FS_FILE_LIST_P2}")
+string(REGEX REPLACE "^;" "" FS_FILE_LIST_P2 "${FS_FILE_LIST_P2}")
 list(REMOVE_DUPLICATES FS_FILE_LIST_P2)
 set(FS_FILE_LIST ${FS_FILE_LIST_SCRUBBED} ${FS_FILE_LIST_P1} 
${FS_FILE_LIST_P2})
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to