2021-05-04 01:57:41 +08:00
|
|
|
diff --git a/gdk-pixbuf/CMakeLists.txt b/gdk-pixbuf/CMakeLists.txt
|
|
|
|
index 85ad59708..d6aa4a5f9 100644
|
|
|
|
--- a/gdk-pixbuf/CMakeLists.txt
|
|
|
|
+++ b/gdk-pixbuf/CMakeLists.txt
|
2023-01-09 17:10:09 +08:00
|
|
|
@@ -1,13 +1,10 @@
|
|
|
|
if(UNIX OR MINGW)
|
2021-05-04 01:57:41 +08:00
|
|
|
find_package(PkgConfig)
|
|
|
|
find_package(Threads)
|
|
|
|
- pkg_check_modules(GDKPIXBUF2 gdk-pixbuf-2.0)
|
|
|
|
+ pkg_check_modules(GDKPIXBUF2 gdk-pixbuf-2.0 IMPORTED_TARGET)
|
|
|
|
|
|
|
|
if(GDKPIXBUF2_FOUND)
|
2023-01-09 17:10:09 +08:00
|
|
|
- execute_process(
|
|
|
|
- COMMAND ${PKG_CONFIG_EXECUTABLE} gdk-pixbuf-2.0 --variable gdk_pixbuf_moduledir
|
|
|
|
- --define-variable=prefix=${CMAKE_INSTALL_PREFIX} OUTPUT_VARIABLE GDKPIXBUF2_MODULE_DIR
|
|
|
|
- OUTPUT_STRIP_TRAILING_WHITESPACE)
|
2021-05-04 01:57:41 +08:00
|
|
|
+ pkg_get_variable(GDKPIXBUF2_MODULE_DIR gdk-pixbuf-2.0 gdk_pixbuf_moduledir)
|
|
|
|
|
|
|
|
add_library(pixbufloader-heif MODULE pixbufloader-heif.c)
|
2023-01-09 17:10:09 +08:00
|
|
|
|
|
|
|
@@ -15,7 +12,7 @@ if(UNIX)
|
|
|
|
|
|
|
|
target_link_directories(pixbufloader-heif PRIVATE ${GDKPIXBUF2_LIBRARY_DIRS})
|
|
|
|
|
2021-05-04 01:57:41 +08:00
|
|
|
- target_link_libraries(pixbufloader-heif PUBLIC ${GDKPIXBUF2_LIBRARIES} heif)
|
|
|
|
+ target_link_libraries(pixbufloader-heif PUBLIC PkgConfig::GDKPIXBUF2 heif)
|
|
|
|
|
2023-01-09 17:10:09 +08:00
|
|
|
install(TARGETS pixbufloader-heif DESTINATION ${GDKPIXBUF2_MODULE_DIR})
|
2021-05-04 01:57:41 +08:00
|
|
|
endif()
|
2023-01-09 17:10:09 +08:00
|
|
|
|