Skip to content

Commit

Permalink
Fix VOL CI CMake builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Jul 16, 2024
1 parent e716059 commit ccb2e04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ccb2e04

Please sign in to comment.