Avoid duplicating the "lib" prefix

if the target name already starts with "lib"
charconv
Martchus 2 years ago
parent a26f3d7e1a
commit 0b267c7959
  1. 5
      cmake/modules/LibraryTarget.cmake

@ -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

Loading…
Cancel
Save