Revision: 77907
          http://sourceforge.net/p/brlcad/code/77907
Author:   starseeker
Date:     2020-12-03 17:23:44 +0000 (Thu, 03 Dec 2020)
Log Message:
-----------
Ensure dependencies are set for static targets

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

Modified: brlcad/trunk/misc/CMake/BRLCAD_Targets.cmake
===================================================================
--- brlcad/trunk/misc/CMake/BRLCAD_Targets.cmake        2020-12-03 17:22:29 UTC 
(rev 77906)
+++ brlcad/trunk/misc/CMake/BRLCAD_Targets.cmake        2020-12-03 17:23:44 UTC 
(rev 77907)
@@ -531,6 +531,12 @@
 
   # Extra static lib specific work
   if(L_STATIC OR (BUILD_STATIC_LIBS AND NOT L_SHARED))
+    # We need to make sure the target depends on any targets in the libslist
+    foreach(ll ${libslist})
+      if (TARGET ${ll})
+       add_dependencies(${libstatic} ${ll})
+      endif (TARGET ${ll})
+    endforeach(ll ${libslist})
     set_target_properties(${libstatic} PROPERTIES FOLDER "BRL-CAD Static 
Libraries${SUBFOLDER}")
     VALIDATE_STYLE("${libstatic}" "${srcslist};${L_STATIC_SRCS}")
     if(NOT L_NO_INSTALL)

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