Avoid duplicating the "lib" prefix

if the target name already starts with "lib"
This commit is contained in:
Martchus 2020-09-23 22:48:28 +02:00
parent a26f3d7e1a
commit 0b267c7959
1 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,11 @@ else ()
AND VERSIONED_MINGW_LIBRARIES)
set_target_properties(${META_TARGET_NAME} PROPERTIES SUFFIX "-${META_SOVERSION}.dll")
endif ()
# avoid duplicating the "lib" prefix if the target name already starts with "lib"
if (META_TARGET_NAME MATCHES "lib.*")
set_target_properties(${META_TARGET_NAME} PROPERTIES PREFIX "")
endif ()
endif ()
# populate META_PUBLIC_LIB_DEPENDS