mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-08-23 15:54:47 +03:00
Fix find_link_library in the event the linker flag check fails.
Signed-off-by: WildCard65 <lollol222gg@gmail.com>
This commit is contained in:
parent
09a27098aa
commit
d23a1ebfad
1 changed files with 4 additions and 4 deletions
|
@ -473,10 +473,10 @@ function(find_link_library libname outlibname)
|
||||||
message(VERBOSE "link library: -l${libname}")
|
message(VERBOSE "link library: -l${libname}")
|
||||||
set(${outlibname} ${libname} PARENT_SCOPE)
|
set(${outlibname} ${libname} PARENT_SCOPE)
|
||||||
else()
|
else()
|
||||||
find_library(MI_LIBPATH libname)
|
find_library(MI_LIBPATH_${libname} ${libname})
|
||||||
if (MI_LIBPATH)
|
if (MI_LIBPATH_${libname})
|
||||||
message(VERBOSE "link library ${libname} at ${MI_LIBPATH}")
|
message(VERBOSE "link library ${libname} at ${MI_LIBPATH_${libname}}")
|
||||||
set(${outlibname} ${MI_LIBPATH} PARENT_SCOPE)
|
set(${outlibname} ${MI_LIBPATH_${libname}} PARENT_SCOPE)
|
||||||
else()
|
else()
|
||||||
message(VERBOSE "link library not found: ${libname}")
|
message(VERBOSE "link library not found: ${libname}")
|
||||||
set(${outlibname} "" PARENT_SCOPE)
|
set(${outlibname} "" PARENT_SCOPE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue