Revision: 77785
http://sourceforge.net/p/brlcad/code/77785
Author: starseeker
Date: 2020-11-21 16:50:31 +0000 (Sat, 21 Nov 2020)
Log Message:
-----------
Make a list and loop over it, rather than having a code block for each target.
Modified Paths:
--------------
brlcad/branches/extbuild/src/libtclcad/CMakeLists.txt
Modified: brlcad/branches/extbuild/src/libtclcad/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/libtclcad/CMakeLists.txt 2020-11-21
04:53:44 UTC (rev 77784)
+++ brlcad/branches/extbuild/src/libtclcad/CMakeLists.txt 2020-11-21
16:50:31 UTC (rev 77785)
@@ -82,14 +82,13 @@
# For anyone to do anything with tclcad, we need the libged plugins
add_dependencies(libtclcad ged_plugins)
- if (TARGET itcl_stage)
- add_dependencies(libtclcad itcl_stage)
- endif (TARGET itcl_stage)
+ set(STAGE_TGTS tcl_stage tk_stage itcl_stage itk_stage iwidgets_stage)
+ foreach(tgt ${STAGE_TGTS})
+ if (TARGET ${tgt})
+ add_dependencies(libtclcad ${tgt})
+ endif (TARGET ${tgt})
+ endforeach(tgt ${STAGE_TGTS})
- if (TARGET itk_stage)
- add_dependencies(libtclcad itk_stage)
- endif (TARGET itk_stage)
-
endif (BRLCAD_ENABLE_TCL)
set(tclcad_ignore_files
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