Revision: 76782
          http://sourceforge.net/p/brlcad/code/76782
Author:   starseeker
Date:     2020-08-15 13:45:48 +0000 (Sat, 15 Aug 2020)
Log Message:
-----------
Allow for empty list in CMAKEFILES function

Modified Paths:
--------------
    brlcad/trunk/misc/CMake/BRLCAD_Util.cmake

Modified: brlcad/trunk/misc/CMake/BRLCAD_Util.cmake
===================================================================
--- brlcad/trunk/misc/CMake/BRLCAD_Util.cmake   2020-08-15 13:42:31 UTC (rev 
76781)
+++ brlcad/trunk/misc/CMake/BRLCAD_Util.cmake   2020-08-15 13:45:48 UTC (rev 
76782)
@@ -270,6 +270,9 @@
     # CMake flags to add_library/add_executable aren't going to be valid 
filenames - just
     # yank them up front.
     set(ITEMS ${ARGN})
+    if (NOT ITEMS)
+      return()
+    endif (NOT ITEMS)
     list(REMOVE_ITEM ITEMS SHARED STATIC OBJECT WIN32 UNKNOWN IMPORTED MODULE 
INTERFACE EXCLUDE_FROM_ALL)
     # TODO - once we require a new enough CMake version, replace the foreach 
below with list(FILTER ...)
     foreach(ITEM ${ITEMS})

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to