Исправлена сборка для целей, состоящих только из заголовков

This commit is contained in:
Andrei Astafev 2021-06-12 16:20:53 +03:00
parent 549df845a4
commit 63d5a966d7

View File

@ -120,7 +120,7 @@ function(sanitizer_check_compiler_flags FLAG_CANDIDATES NAME PREFIX)
if(${PREFIX}_FLAG_DETECTED) if(${PREFIX}_FLAG_DETECTED)
# If compiler is a GNU compiler, search for static flag, if # If compiler is a GNU compiler, search for static flag, if
# SANITIZE_LINK_STATIC is enabled. # SANITIZE_LINK_STATIC is enabled.
if(SANITIZE_LINK_STATIC AND (${COMPILER} STREQUAL "GNU")) if(SANITIZE_LINK_STATIC AND (COMPILER STREQUAL "GNU"))
string(TOLOWER ${PREFIX} PREFIX_lower) string(TOLOWER ${PREFIX} PREFIX_lower)
sanitizer_check_compiler_flag("-static-lib${PREFIX_lower}" ${LANG} sanitizer_check_compiler_flag("-static-lib${PREFIX_lower}" ${LANG}
${PREFIX}_STATIC_FLAG_DETECTED) ${PREFIX}_STATIC_FLAG_DETECTED)