mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00

59d5f692f
removed cmake.deps/cmake/DownloadAndExtractFile.cmake and
support for USE_EXISTING_SRC_DIR. The Ubuntu nightly PPA still relies
on USE_EXISTING_SRC_DIR functionality since it can't access the network
during the build.
Supplying an empty value for ExternalProject_Add()'s URL value appears
to provide the needed mechanism to avoid re-downloading when the sources
are already present. This is undocumented behavior, though, so it may
break in the future.
Now, if USE_EXISTING_SRC_DIR is set, the ExternalProject's URL variable
is unset, preventing the download and erroring out if the source doesn't
actually exist.
19 lines
507 B
CMake
19 lines
507 B
CMake
if(USE_EXISTING_SRC_DIR)
|
|
unset(LIBUV_URL)
|
|
endif()
|
|
ExternalProject_Add(libuv
|
|
URL ${LIBUV_URL}
|
|
URL_HASH SHA256=${LIBUV_SHA256}
|
|
DOWNLOAD_NO_PROGRESS TRUE
|
|
CMAKE_ARGS
|
|
-DCMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR}
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
-DBUILD_TESTING=OFF
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
-DLIBUV_BUILD_SHARED=OFF
|
|
CMAKE_CACHE_ARGS
|
|
-DCMAKE_OSX_ARCHITECTURES:STRING=${CMAKE_OSX_ARCHITECTURES}
|
|
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/libuv)
|
|
|
|
list(APPEND THIRD_PARTY_DEPS libuv)
|