Skip to content

Commit

Permalink
Support older utfcpp versions with utf8cpp CMake target (taglib#1243)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ufleisch committed Aug 13, 2024
1 parent 7c85fca commit 7d5e900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taglib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)

Expand Down

0 comments on commit 7d5e900

Please sign in to comment.