From 3133aeae70124cb37b29ca50b279c33c29f14a62 Mon Sep 17 00:00:00 2001 From: Dan Lipsa Date: Mon, 23 Dec 2024 09:52:57 -0500 Subject: [PATCH] Avoid trying to get dependencies from headers Original code will pick up header files from *-targets.cmake and then complain when trying to gather its dependencies --- projects/unix/paraviewsdk.bundle.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/unix/paraviewsdk.bundle.cmake b/projects/unix/paraviewsdk.bundle.cmake index f806070a2..416c50be8 100644 --- a/projects/unix/paraviewsdk.bundle.cmake +++ b/projects/unix/paraviewsdk.bundle.cmake @@ -73,7 +73,7 @@ endif () ############################################################ # First, grab all the referenced targets from the CMake files -file(GLOB_RECURSE cmake_files "${superbuild_install_location}/lib/cmake/paraview-${paraview_version}/*.cmake") +file(GLOB_RECURSE cmake_files "${superbuild_install_location}/lib/cmake/paraview-${paraview_version}/*-targets-release.cmake") set(libraries_referenced_by_cmake) foreach (cmake_file IN LISTS cmake_files) file(STRINGS "${cmake_file}" lines REGEX "\\\${_IMPORT_PREFIX}[^;\\\">]+") -- GitLab