diff options
| author | Urs Fleisch <ufleisch@users.sourceforge.net> | 2024-08-15 12:44:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-15 12:44:17 +0200 |
| commit | 1bd0d711ca816e35e653479301ec2e2e23cb1b70 (patch) | |
| tree | 0a3fcfd093b4fc9cb8f38ad278709b014a6e295e | |
| parent | 7c85fcaa81649e7840eb0bdcb2a89da77232cd34 (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.txt | 2 |
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> ) |
