From ccb2e042649a9cc676e46c48a7fc3e4ff11a84b8 Mon Sep 17 00:00:00 2001 From: Matthew Larson Date: Tue, 16 Jul 2024 09:31:50 -0500 Subject: [PATCH] Fix VOL CI CMake builds --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2d474b877f0..edd58153b53 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1202,8 +1202,12 @@ endif () # Assuming they don't foreach (libs ${LINK_COMP_LIBS}) # set (_PKG_CONFIG_REQUIRES_PRIVATE "${_PKG_CONFIG_REQUIRES_PRIVATE} -l${libs}") +if(TARGET ${libs}) get_target_property (libname ${libs} OUTPUT_NAME) set (_PKG_CONFIG_LIBS_PRIVATE "${_PKG_CONFIG_LIBS_PRIVATE} -l${libname}") +else () + set (_PKG_CONFIG_LIBS_PRIVATE "${_PKG_CONFIG_LIBS_PRIVATE} -l${libs}") +endif () endforeach () #if (BUILD_STATIC_LIBS)