From c3ff8cbb7cfe715604099809d0f5f2de84514717 Mon Sep 17 00:00:00 2001 From: Rich Wareham Date: Tue, 25 Feb 2014 00:00:10 +0000 Subject: [PATCH] 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. --- cmake/FindLibUV.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindLibUV.cmake b/cmake/FindLibUV.cmake index 3aeb01195e..d0cedfb37d 100644 --- a/cmake/FindLibUV.cmake +++ b/cmake/FindLibUV.cmake @@ -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.