From 2683df526d1b40fa9343f9162ba20432d6e32108 Mon Sep 17 00:00:00 2001 From: Cody Balos Date: Thu, 16 Jan 2025 13:46:20 -0800 Subject: [PATCH] shorten target name helps on windows systems where the default max path length is still set to 260 --- cmake/macros/SundialsAddLibrary.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/macros/SundialsAddLibrary.cmake b/cmake/macros/SundialsAddLibrary.cmake index e3d0bb893d..677f7eb3d8 100644 --- a/cmake/macros/SundialsAddLibrary.cmake +++ b/cmake/macros/SundialsAddLibrary.cmake @@ -198,10 +198,10 @@ macro(sundials_add_library target) list(REMOVE_ITEM _stripped_all_libs ${_item}) endif() endforeach() - add_custom_target(fake_to_force_build_order_${obj_target}) - add_dependencies(fake_to_force_build_order_${obj_target} + add_custom_target(fake_${obj_target}) + add_dependencies(fake_${obj_target} ${_stripped_all_libs}) - add_dependencies(${obj_target} fake_to_force_build_order_${obj_target}) + add_dependencies(${obj_target} fake_${obj_target}) target_link_libraries(${obj_target} ${_all_libs}) endif()