mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
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.
This commit is contained in:
parent
4e29a820b6
commit
0efc815216
@ -10,7 +10,7 @@ set(DEPS_BUILD_DIR "${DEPS_DIR}/build")
|
||||
set(DEPS_INSTALL_DIR "${DEPS_DIR}/usr")
|
||||
set(DEPS_BIN_DIR "${DEPS_INSTALL_DIR}/bin")
|
||||
|
||||
set(CMAKE_PREFIX_PATH ${DEPS_INSTALL_DIR})
|
||||
list(APPEND CMAKE_PREFIX_PATH ${DEPS_INSTALL_DIR})
|
||||
|
||||
set(NEOVIM_VERSION_MAJOR 0)
|
||||
set(NEOVIM_VERSION_MINOR 0)
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user