harfbuzz-config.cmake: support static library build
This commit is contained in:
parent
28b05e1cb6
commit
905eeee4a4
|
@ -12,6 +12,9 @@ list(GET _harfbuzz_version_info 2
|
||||||
_harfbuzz_age)
|
_harfbuzz_age)
|
||||||
unset(_harfbuzz_version_info)
|
unset(_harfbuzz_version_info)
|
||||||
|
|
||||||
|
if ("@default_library@" MATCHES "static")
|
||||||
|
set(_harfbuzz_lib_suffix ".a")
|
||||||
|
else ()
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set(_harfbuzz_lib_suffix ".0${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
set(_harfbuzz_lib_suffix ".0${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
|
@ -20,6 +23,7 @@ else ()
|
||||||
# Unsupported.
|
# Unsupported.
|
||||||
set(harfbuzz_FOUND 0)
|
set(harfbuzz_FOUND 0)
|
||||||
endif ()
|
endif ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
# Add the libraries.
|
# Add the libraries.
|
||||||
add_library(harfbuzz::harfbuzz SHARED IMPORTED)
|
add_library(harfbuzz::harfbuzz SHARED IMPORTED)
|
||||||
|
|
Loading…
Reference in New Issue