Revision: 69961
          http://sourceforge.net/p/brlcad/code/69961
Author:   starseeker
Date:     2017-07-17 13:09:12 +0000 (Mon, 17 Jul 2017)
Log Message:
-----------
See if we can simplify the dependency logic for timing targets

Modified Paths:
--------------
    brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2017-07-17 02:32:54 UTC (rev 69960)
+++ brlcad/trunk/CMakeLists.txt 2017-07-17 13:09:12 UTC (rev 69961)
@@ -2816,22 +2816,15 @@
     endif(TARGET ${libtarget})
   endforeach(libtarget ${CMAKE_LIBRARY_TARGET_LIST})
   foreach(exectarget ${CMAKE_EXEC_TARGET_LIST})
-    if(NOT CMAKE_BUILD_TYPE)
-      get_target_property(target_location ${exectarget} LOCATION)
-    else(NOT CMAKE_BUILD_TYPE)
-      get_target_property(target_location ${exectarget} 
LOCATION_${CMAKE_BUILD_TYPE})
-    endif(NOT CMAKE_BUILD_TYPE)
-    if(target_location)
-      if(NOT ${exectarget} MATCHES "printtimestamp" AND NOT ${exectarget} 
MATCHES "buildtimestart")
-       add_dependencies(${exectarget} timestamp)
-      endif()
+    if(TARGET ${exectarget})
+      add_dependencies(${exectarget} timestamp)
       add_dependencies(buildtimedelta ${exectarget})
-    endif(target_location)
+    endif(TARGET ${exectarget})
   endforeach(exectarget ${CMAKE_EXEC_TARGET_LIST})
   foreach(custtarget ${CMAKE_CUSTOM_TARGET_LIST})
     if(NOT ${custtarget} MATCHES "timestamp")
       add_dependencies(${custtarget} timestamp)
-    endif()
+    endif(NOT ${custtarget} MATCHES "timestamp")
     if(NOT ${custtarget} MATCHES "buildtimedelta")
       get_target_property(not_in_all ${custtarget} EXCLUDE_FROM_ALL)
       get_target_property(not_in_default ${custtarget} 
EXCLUDE_FROM_DEFAULT_BUILD)
@@ -2847,7 +2840,6 @@
       add_dependencies(buildtimedelta ${externaltarget})
     endif(target_confcmd)
   endforeach(externaltarget ${CMAKE_EXTERNAL_TARGET_LIST})
-
 endif(NOT BRLCAD_IS_SUBBUILD)
 
 

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