Skip to content

Commit 1bd0d71

Browse files
authored
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.
1 parent 7c85fca commit 1bd0d71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

taglib/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ target_include_directories(tag INTERFACE
347347
)
348348

349349
target_link_libraries(tag
350-
PRIVATE $<$<TARGET_EXISTS:utf8::cpp>:utf8::cpp>
350+
PRIVATE $<IF:$<TARGET_EXISTS:utf8::cpp>,utf8::cpp,$<$<TARGET_EXISTS:utf8cpp>:utf8cpp>>
351351
$<$<TARGET_EXISTS:ZLIB::ZLIB>:ZLIB::ZLIB>
352352
)
353353

0 commit comments

Comments
 (0)