Skip to content

Commit

Permalink
Set IMPORTED_NO_SONAME on RESVG target
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Jan 8, 2020
1 parent 309c49b commit 5b31ba1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/Modules/FindRESVG.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,18 @@ 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}")

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()

0 comments on commit 5b31ba1

Please sign in to comment.