prefer linking to static libuv

Explicitly try to find the static libuv library first.

This might be considered a hack and if it weren't a single-use module it
might be preferable to control static versus shared preferences with a
configuration variable.
This commit is contained in:
Rich Wareham 2014-02-25 00:00:10 +00:00 committed by Thiago de Arruda
parent e94f933f39
commit c3ff8cbb7c

View File

@ -12,9 +12,9 @@ find_path(LibUV_INCLUDE_DIR
NAMES uv.h
)
# The library itself
# The library itself. Note that we prefer the static version.
find_library(LibUV_LIBRARY
NAMES uv
NAMES libuv.a uv
)
# Set the include dir variables and the libraries and let libfind_process do the rest.