Revision: 77382
http://sourceforge.net/p/brlcad/code/77382
Author: starseeker
Date: 2020-10-09 14:20:15 +0000 (Fri, 09 Oct 2020)
Log Message:
-----------
Don't want one target per file unless that proves necessary for things to
work...
Modified Paths:
--------------
brlcad/branches/thirdparty_rework/src/superbuild/CMake/ExternalProject_Target.cmake
Modified:
brlcad/branches/thirdparty_rework/src/superbuild/CMake/ExternalProject_Target.cmake
===================================================================
---
brlcad/branches/thirdparty_rework/src/superbuild/CMake/ExternalProject_Target.cmake
2020-10-09 14:13:29 UTC (rev 77381)
+++
brlcad/branches/thirdparty_rework/src/superbuild/CMake/ExternalProject_Target.cmake
2020-10-09 14:20:15 UTC (rev 77382)
@@ -98,6 +98,7 @@
add_custom_target(${etarg}_stage ALL)
endif (NOT TARGET ${etarg}_stage)
+ set(ALL_TOUT)
foreach (bpf ${E_UNPARSED_ARGUMENTS})
# If a relative prefix was specified, construct the "source" file using it.
# This is used to save verbosity in ByProducts input lists.
@@ -109,9 +110,7 @@
unset(TOUT)
fcfgcpy(TOUT ${extproj} ${extroot} "${target_dir}" ${ofile} ${bpf})
- string(MD5 UKEY "${TOUT}")
- add_custom_target(${etarg}_${UKEY} ALL DEPENDS ${TOUT})
- add_dependencies(${etarg}_stage ${etarg}_${UKEY})
+ set(ALL_TOUT ${ALL_TOUT} ${TOUT})
install(FILES "${CMAKE_BINARY_DIR}/$<CONFIG>/${target_dir}/${bpf}"
DESTINATION "${target_dir}/")
if (E_FIXPATH)
@@ -122,11 +121,11 @@
endforeach (bpf ${E_UNPARSED_ARGUMENTS})
- if (E_UNPARSED_ARGUMENTS)
- string(MD5 UKEY "${E_UNPARSED_ARGUMENTS}")
- add_custom_target(${etarg}_${UKEY} ALL DEPENDS ${TOUT})
- add_dependencies(${etarg} ${etarg}_${UKEY})
- endif (E_UNPARSED_ARGUMENTS)
+ if (ALL_TOUT)
+ string(MD5 UKEY "${ALL_TOUT}")
+ add_custom_target(${etarg}_${UKEY} ALL DEPENDS ${ALL_TOUT})
+ add_dependencies(${etarg}_stage ${etarg}_${UKEY})
+ endif (ALL_TOUT)
endfunction(ExternalProject_ByProducts)
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