[kfilemetadata] autotests: Restore # 6c9111a9 until a successful build and link without TagLib is possible.
James D. Smith
null at kde.org
Sun Dec 3 05:10:24 UTC 2017
Git commit 2e435e074876ef909f88fdec0ebd54b8a982ced1 by James D. Smith.
Committed on 03/12/2017 at 05:10.
Pushed by smithjd into branch 'master'.
Restore # 6c9111a9 until a successful build and link without TagLib is possible.
CCMAIL: bcooksley at kde.org
CCMAIL: kde-frameworks-devel at kde.org
M +9 -5 autotests/CMakeLists.txt
https://commits.kde.org/kfilemetadata/2e435e074876ef909f88fdec0ebd54b8a982ced1
diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt
index 68f3778..cb7f3b9 100644
--- a/autotests/CMakeLists.txt
+++ b/autotests/CMakeLists.txt
@@ -152,11 +152,15 @@ ecm_add_test(${extractorcollection_SRCS}
# UserMetaData
#
-kde_enable_exceptions()
-ecm_add_test(usermetadatawritertest.cpp ../src/usermetadata.cpp
- TEST_NAME "usermetadatawritertest"
- LINK_LIBRARIES Qt5::Test KF5::FileMetaData
-)
+if(TAGLIB_FOUND)
+ include_directories(${TAGLIB_INCLUDES})
+
+ kde_enable_exceptions()
+ ecm_add_test(usermetadatawritertest.cpp ../src/usermetadata.cpp
+ TEST_NAME "usermetadatawritertest"
+ LINK_LIBRARIES Qt5::Test KF5::FileMetaData
+ )
+endif()
#
# TagLib
More information about the Kde-frameworks-devel
mailing list