File fix-taglib-include-dirs.patch of Package k3b

Index: k3b-20.04.2/plugins/decoder/flac/CMakeLists.txt
===================================================================
--- k3b-20.04.2.orig/plugins/decoder/flac/CMakeLists.txt
+++ k3b-20.04.2/plugins/decoder/flac/CMakeLists.txt
@@ -17,12 +17,12 @@ configure_file(config-flac.h.cmake confi
 
 add_library(k3bflacdecoder MODULE k3bflacdecoder.cpp)
 
-target_include_directories(k3bflacdecoder PRIVATE ${FLAC++_INCLUDE_DIR} ${FLAC_INCLUDE_DIR} ${TAGLIB_INCLUDES})
+target_include_directories(k3bflacdecoder PRIVATE ${FLAC++_INCLUDE_DIR} ${FLAC_INCLUDE_DIR} ${Taglib_INCLUDE_DIRS})
 
 target_link_libraries(k3bflacdecoder k3bdevice k3blib KF5::I18n ${FLAC++_LIBRARIES} ${FLAC_LIBRARIES})
 
 if(ENABLE_TAGLIB)
-    target_link_libraries(k3bflacdecoder ${TAGLIB_LIBRARIES})
+    target_link_libraries(k3bflacdecoder ${Taglib_LIBRARIES})
 endif()
 
 install(TARGETS k3bflacdecoder DESTINATION ${PLUGIN_INSTALL_DIR})
Index: k3b-20.04.2/plugins/decoder/mp3/CMakeLists.txt
===================================================================
--- k3b-20.04.2.orig/plugins/decoder/mp3/CMakeLists.txt
+++ k3b-20.04.2/plugins/decoder/mp3/CMakeLists.txt
@@ -1,11 +1,11 @@
 add_library(k3bmaddecoder MODULE k3bmad.cpp k3bmaddecoder.cpp)
 
-target_include_directories(k3bmaddecoder PRIVATE ${MAD_INCLUDE_DIR} ${TAGLIB_INCLUDES})
+target_include_directories(k3bmaddecoder PRIVATE ${MAD_INCLUDE_DIR} ${Taglib_INCLUDE_DIRS})
 
 target_link_libraries(k3bmaddecoder k3bdevice k3blib KF5::I18n ${MAD_LIBRARIES})
 
 if(ENABLE_TAGLIB)
-    target_link_libraries(k3bmaddecoder ${TAGLIB_LIBRARIES})
+    target_link_libraries(k3bmaddecoder ${Taglib_LIBRARIES})
 endif()
 
 install(TARGETS k3bmaddecoder DESTINATION ${PLUGIN_INSTALL_DIR} )
Index: k3b-20.04.2/plugins/project/audiometainforenamer/CMakeLists.txt
===================================================================
--- k3b-20.04.2.orig/plugins/project/audiometainforenamer/CMakeLists.txt
+++ k3b-20.04.2/plugins/project/audiometainforenamer/CMakeLists.txt
@@ -1,4 +1,4 @@
-include_directories(${TAGLIB_INCLUDES})
+include_directories(${Taglib_INCLUDE_DIRS})
 
 add_library(k3baudiometainforenamerplugin MODULE k3baudiometainforenamerplugin.cpp)
 
@@ -6,7 +6,7 @@ target_link_libraries(k3baudiometainfore
     k3bdevice
     k3blib
     KF5::I18n
-    ${TAGLIB_LIBRARIES}
+    ${Taglib_LIBRARIES}
 )
 
 install(TARGETS k3baudiometainforenamerplugin DESTINATION ${PLUGIN_INSTALL_DIR} )
openSUSE Build Service is sponsored by