mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Allow cmake caller to override DEPS_PREFIX
- Caller can override bundled dependency location using DEPS_PREFIX - Cache variable DEPS_PREFIX, using .deps/usr by default - Removed unused variables DEPS_BIN_DIR, DEPS_BUILD_DIR, DEPS_DIR DEPS_INSTALL_DIR - Corner case: if the caller tries to override DEPS_PREFIX after a successful cmake configuration, the caller needs to clear the cache because dependency checks are based on the old value
This commit is contained in:
parent
64d78c0b7d
commit
8d54a7203e
@ -5,12 +5,8 @@ project(NEOVIM)
|
||||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
||||
|
||||
# Prefer our bundled versions of dependencies.
|
||||
set(DEPS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/.deps")
|
||||
set(DEPS_BUILD_DIR "${DEPS_DIR}/build")
|
||||
set(DEPS_INSTALL_DIR "${DEPS_DIR}/usr")
|
||||
set(DEPS_BIN_DIR "${DEPS_INSTALL_DIR}/bin")
|
||||
|
||||
list(APPEND CMAKE_PREFIX_PATH ${DEPS_INSTALL_DIR})
|
||||
set(DEPS_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/.deps/usr" CACHE PATH "Path prefix for finding dependencies")
|
||||
list(INSERT CMAKE_PREFIX_PATH 0 ${DEPS_PREFIX})
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
# CMake tries to treat /sw and /opt/local as extension of the system path, but
|
||||
|
Loading…
Reference in New Issue
Block a user