aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUrs Fleisch <ufleisch@users.sourceforge.net>2024-08-15 12:44:17 +0200
committerGitHub <noreply@github.com>2024-08-15 12:44:17 +0200
commit1bd0d711ca816e35e653479301ec2e2e23cb1b70 (patch)
tree0a3fcfd093b4fc9cb8f38ad278709b014a6e295e
parent7c85fcaa81649e7840eb0bdcb2a89da77232cd34 (diff)
Support older utfcpp versions with utf8cpp CMake target (#1243) (#1244)
This affects for example openSUSE Leap 15.6, which installs utfcpp 3.2.1 in its own folder. Now not only utf8::cpp, but also utf8cpp is supported as a CMake target.
-rw-r--r--taglib/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/taglib/CMakeLists.txt b/taglib/CMakeLists.txt
index 519bd9a6..c6785fb8 100644
--- a/taglib/CMakeLists.txt
+++ b/taglib/CMakeLists.txt
@@ -347,7 +347,7 @@ target_include_directories(tag INTERFACE
)
target_link_libraries(tag
- PRIVATE $<$<TARGET_EXISTS:utf8::cpp>:utf8::cpp>
+ PRIVATE $<IF:$<TARGET_EXISTS:utf8::cpp>,utf8::cpp,$<$<TARGET_EXISTS:utf8cpp>:utf8cpp>>
$<$<TARGET_EXISTS:ZLIB::ZLIB>:ZLIB::ZLIB>
)