link against system libpng/libjpeg
authorIOhannes m zmölnig <umlaeute@debian.org>
Sun, 15 May 2022 16:50:55 +0000 (17:50 +0100)
committerDennis Braun <d_braun@kabelmail.de>
Sun, 15 May 2022 16:50:55 +0000 (17:50 +0100)
Forwarded: not-needed
Last-Update: 2021-12-20

Last-Update: 2021-12-20
Gbp-Pq: Name 06-system-jpg+png.patch

CMakeLists.txt

index db418f07bcac77a86368e639f7668034545d5135..8e75f5fa5d5a9debf005d999d86fba90436f948e 100644 (file)
@@ -394,6 +394,9 @@ else()
        message("Libsamplerate library found in " ${LIBRARY_SAMPLERATE})
 endif()
 
+pkg_check_modules(JpegPng IMPORTED_TARGET libjpeg libpng)
+list(APPEND LIBRARIES PkgConfig::JpegPng)
+
 # Catch (if tests enabled)
 
 if (WITH_TESTS)