From 0efc8152160f6ef5c8bb4b5dc56019a7cdc14476 Mon Sep 17 00:00:00 2001 From: John Szakmeister Date: Fri, 28 Mar 2014 05:05:00 -0400 Subject: Append to CMAKE_PREFIX_PATH instead setting it outright. Also, don't set it in the FindXxx cmake scripts--it's unnecessary, and it resets the value. --- cmake/FindLibUV.cmake | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmake') diff --git a/cmake/FindLibUV.cmake b/cmake/FindLibUV.cmake index 357f12c3fd..d5b871398c 100644 --- a/cmake/FindLibUV.cmake +++ b/cmake/FindLibUV.cmake @@ -21,7 +21,6 @@ else() set(LIMIT_SEARCH NO_DEFAULT_PATH) endif() -set(CMAKE_PREFIX_PATH "${DEPS_INSTALL_DIR}") find_path(LIBUV_INCLUDE_DIR uv.h HINTS ${PC_LIBUV_INCLUDEDIR} ${PC_LIBUV_INCLUDE_DIRS} PATHS "${DEPS_INSTALL_DIR}" @@ -35,7 +34,6 @@ endif(LIBUV_USE_STATIC) list(APPEND LIBUV_NAMES uv) -set(CMAKE_PREFIX_PATH "${DEPS_INSTALL_DIR}") find_library(LIBUV_LIBRARY NAMES ${LIBUV_NAMES} HINTS ${PC_LIBUV_LIBDIR} ${PC_LIBUV_LIBRARY_DIRS} PATHS "${DEPS_INSTALL_DIR}" -- cgit