From 5b31ba112efce8f43ff333ca4bef5126f41f5880 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Wed, 8 Jan 2020 18:47:19 -0500 Subject: [PATCH] Set IMPORTED_NO_SONAME on RESVG target --- cmake/Modules/FindRESVG.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/Modules/FindRESVG.cmake b/cmake/Modules/FindRESVG.cmake index d9942730c..c70b2e885 100644 --- a/cmake/Modules/FindRESVG.cmake +++ b/cmake/Modules/FindRESVG.cmake @@ -94,7 +94,7 @@ find_package_handle_standard_args(RESVG # Export target if(RESVG_FOUND AND NOT TARGET RESVG::resvg) message(STATUS "Creating IMPORTED target RESVG::resvg") - add_library(RESVG::resvg UNKNOWN IMPORTED) + add_library(RESVG::resvg SHARED IMPORTED) set_target_properties(RESVG::resvg PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${RESVG_INCLUDE_DIRS}") @@ -102,6 +102,10 @@ if(RESVG_FOUND AND NOT TARGET RESVG::resvg) set_property(TARGET RESVG::resvg APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS "${RESVG_DEFINITIONS}") + # libresvg.so doesn't have a SONAME + set_property(TARGET RESVG::resvg APPEND PROPERTY + IMPORTED_NO_SONAME TRUE) + set_property(TARGET RESVG::resvg APPEND PROPERTY IMPORTED_LOCATION "${RESVG_LIBRARIES}") endif()