vcpkg/ports/lunasvg/fix-cmake.patch

29 lines
944 B
Diff
Raw Normal View History

2023-07-14 16:21:37 -07:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea4b2d2..f622d45 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2024-08-10 11:18:21 +02:00
@@ -32,7 +32,11 @@ install(FILES
2023-07-14 16:21:37 -07:00
)
install(TARGETS lunasvg
+ EXPORT unofficial-lunasvg-config
2024-08-10 11:18:21 +02:00
+ PUBLIC_HEADER DESTINATION include
+ RUNTIME DESTINATION bin
LIBRARY DESTINATION ${LUNASVG_LIBDIR}
ARCHIVE DESTINATION ${LUNASVG_LIBDIR}
INCLUDES DESTINATION ${LUNASVG_INCDIR}
)
2023-07-14 16:21:37 -07:00
+install(EXPORT unofficial-lunasvg-config NAMESPACE unofficial::lunasvg:: DESTINATION share/unofficial-lunasvg)
\ No newline at end of file
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index de58954..74149dc 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -1,4 +1,5 @@
target_include_directories(lunasvg
PUBLIC
- "${CMAKE_CURRENT_LIST_DIR}"
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
+ $<INSTALL_INTERFACE:include>
)