aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2022-10-01 14:54:58 +0200
committerdundargoc <gocdundar@gmail.com>2022-10-02 12:47:14 +0200
commitfbc66d798ce834c4ba05360c3c07ce7af40d6fc9 (patch)
treefa01db35d5148d716e8cd037f647f47ddcc19bae
parent59d5f692f8f563bf6f7c232f971ad764316e4466 (diff)
downloadrneovim-fbc66d798ce834c4ba05360c3c07ce7af40d6fc9.tar.gz
rneovim-fbc66d798ce834c4ba05360c3c07ce7af40d6fc9.tar.bz2
rneovim-fbc66d798ce834c4ba05360c3c07ce7af40d6fc9.zip
build: define EP_PREFIX property
This is just to avoid the boilerplate of definining PREFIX for each dependency.
-rw-r--r--cmake.deps/CMakeLists.txt1
-rw-r--r--cmake.deps/cmake/BuildGettext.cmake1
-rw-r--r--cmake.deps/cmake/BuildLibiconv.cmake1
-rw-r--r--cmake.deps/cmake/BuildLibtermkey.cmake1
-rw-r--r--cmake.deps/cmake/BuildLibuv.cmake1
-rw-r--r--cmake.deps/cmake/BuildLibvterm.cmake1
-rw-r--r--cmake.deps/cmake/BuildLua.cmake1
-rw-r--r--cmake.deps/cmake/BuildLuajit.cmake1
-rw-r--r--cmake.deps/cmake/BuildLuarocks.cmake1
-rw-r--r--cmake.deps/cmake/BuildLuv.cmake2
-rw-r--r--cmake.deps/cmake/BuildMsgpack.cmake1
-rw-r--r--cmake.deps/cmake/BuildTreesitter.cmake1
-rw-r--r--cmake.deps/cmake/BuildTreesitterParsers.cmake1
-rw-r--r--cmake.deps/cmake/BuildUnibilium.cmake1
-rw-r--r--cmake.deps/cmake/GetBinaryDeps.cmake1
15 files changed, 1 insertions, 15 deletions
diff --git a/cmake.deps/CMakeLists.txt b/cmake.deps/CMakeLists.txt
index e61504c82b..4e245610b2 100644
--- a/cmake.deps/CMakeLists.txt
+++ b/cmake.deps/CMakeLists.txt
@@ -142,6 +142,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
endif()
include(ExternalProject)
+set_directory_properties(PROPERTIES EP_PREFIX "${DEPS_BUILD_DIR}")
set(LIBUV_URL https://github.com/libuv/libuv/archive/f610339f74f7f0fcd183533d2c965ce1468b44c6.tar.gz)
set(LIBUV_SHA256 d5f22303ba44ac60d3232b1977b404d23a349ae4e8cb83f00e7122fafe38d8c9)
diff --git a/cmake.deps/cmake/BuildGettext.cmake b/cmake.deps/cmake/BuildGettext.cmake
index f2fdd68e28..4bcfeea32a 100644
--- a/cmake.deps/cmake/BuildGettext.cmake
+++ b/cmake.deps/cmake/BuildGettext.cmake
@@ -1,6 +1,5 @@
if(MSVC)
ExternalProject_Add(gettext
- PREFIX ${DEPS_BUILD_DIR}
URL ${GETTEXT_URL}
URL_HASH SHA256=${GETTEXT_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildLibiconv.cmake b/cmake.deps/cmake/BuildLibiconv.cmake
index d67b50c3a5..b887e4fbbe 100644
--- a/cmake.deps/cmake/BuildLibiconv.cmake
+++ b/cmake.deps/cmake/BuildLibiconv.cmake
@@ -1,6 +1,5 @@
if(MSVC)
ExternalProject_Add(libiconv
- PREFIX ${DEPS_BUILD_DIR}
URL ${LIBICONV_URL}
URL_HASH SHA256=${LIBICONV_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildLibtermkey.cmake b/cmake.deps/cmake/BuildLibtermkey.cmake
index 3a571ccdc4..604efb7504 100644
--- a/cmake.deps/cmake/BuildLibtermkey.cmake
+++ b/cmake.deps/cmake/BuildLibtermkey.cmake
@@ -23,7 +23,6 @@ else()
endif()
ExternalProject_Add(libtermkey
- PREFIX ${DEPS_BUILD_DIR}
URL ${LIBTERMKEY_URL}
URL_HASH SHA256=${LIBTERMKEY_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildLibuv.cmake b/cmake.deps/cmake/BuildLibuv.cmake
index 713cf2e4eb..63cc22ee5b 100644
--- a/cmake.deps/cmake/BuildLibuv.cmake
+++ b/cmake.deps/cmake/BuildLibuv.cmake
@@ -1,5 +1,4 @@
ExternalProject_Add(libuv
- PREFIX ${DEPS_BUILD_DIR}
URL ${LIBUV_URL}
URL_HASH SHA256=${LIBUV_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildLibvterm.cmake b/cmake.deps/cmake/BuildLibvterm.cmake
index d2c04d5b28..85dfed732d 100644
--- a/cmake.deps/cmake/BuildLibvterm.cmake
+++ b/cmake.deps/cmake/BuildLibvterm.cmake
@@ -25,7 +25,6 @@ else()
endif()
ExternalProject_Add(libvterm
- PREFIX ${DEPS_BUILD_DIR}
URL ${LIBVTERM_URL}
URL_HASH SHA256=${LIBVTERM_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildLua.cmake b/cmake.deps/cmake/BuildLua.cmake
index ccfcc01474..fcc2f8ca25 100644
--- a/cmake.deps/cmake/BuildLua.cmake
+++ b/cmake.deps/cmake/BuildLua.cmake
@@ -43,7 +43,6 @@ set(LUA_INSTALL_TOP_ARG "INSTALL_TOP=${DEPS_INSTALL_DIR}")
message(STATUS "Lua target is ${LUA_TARGET}")
ExternalProject_Add(lua
- PREFIX ${DEPS_BUILD_DIR}
URL ${LUA_URL}
URL_HASH SHA256=${LUA_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildLuajit.cmake b/cmake.deps/cmake/BuildLuajit.cmake
index 05a15a8bb6..3a853316af 100644
--- a/cmake.deps/cmake/BuildLuajit.cmake
+++ b/cmake.deps/cmake/BuildLuajit.cmake
@@ -16,7 +16,6 @@ function(BuildLuajit)
endif()
ExternalProject_Add(${_luajit_TARGET}
- PREFIX ${DEPS_BUILD_DIR}
URL ${LUAJIT_URL}
URL_HASH SHA256=${LUAJIT_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildLuarocks.cmake b/cmake.deps/cmake/BuildLuarocks.cmake
index 33fd995839..85188c8656 100644
--- a/cmake.deps/cmake/BuildLuarocks.cmake
+++ b/cmake.deps/cmake/BuildLuarocks.cmake
@@ -82,7 +82,6 @@ else()
endif()
ExternalProject_Add(luarocks
- PREFIX ${DEPS_BUILD_DIR}
URL ${LUAROCKS_URL}
URL_HASH SHA256=${LUAROCKS_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildLuv.cmake b/cmake.deps/cmake/BuildLuv.cmake
index 6b0360e363..9fa56d32c3 100644
--- a/cmake.deps/cmake/BuildLuv.cmake
+++ b/cmake.deps/cmake/BuildLuv.cmake
@@ -56,7 +56,6 @@ else()
endif()
ExternalProject_Add(lua-compat-5.3
- PREFIX ${DEPS_BUILD_DIR}
URL ${LUA_COMPAT53_URL}
URL_HASH SHA256=${LUA_COMPAT53_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
@@ -66,7 +65,6 @@ ExternalProject_Add(lua-compat-5.3
INSTALL_COMMAND "")
ExternalProject_Add(luv-static
- PREFIX ${DEPS_BUILD_DIR}
DEPENDS lua-compat-5.3
URL ${LUV_URL}
URL_HASH SHA256=${LUV_SHA256}
diff --git a/cmake.deps/cmake/BuildMsgpack.cmake b/cmake.deps/cmake/BuildMsgpack.cmake
index d2a0dfd132..da62741811 100644
--- a/cmake.deps/cmake/BuildMsgpack.cmake
+++ b/cmake.deps/cmake/BuildMsgpack.cmake
@@ -22,7 +22,6 @@ if(MSVC)
endif()
ExternalProject_Add(msgpack
- PREFIX ${DEPS_BUILD_DIR}
URL ${MSGPACK_URL}
URL_HASH SHA256=${MSGPACK_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildTreesitter.cmake b/cmake.deps/cmake/BuildTreesitter.cmake
index aa545b3a3b..e24c112aaf 100644
--- a/cmake.deps/cmake/BuildTreesitter.cmake
+++ b/cmake.deps/cmake/BuildTreesitter.cmake
@@ -18,7 +18,6 @@ else()
endif()
ExternalProject_Add(tree-sitter
- PREFIX ${DEPS_BUILD_DIR}
URL ${TREESITTER_URL}
URL_HASH SHA256=${TREESITTER_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildTreesitterParsers.cmake b/cmake.deps/cmake/BuildTreesitterParsers.cmake
index ad45491861..9e3c37337e 100644
--- a/cmake.deps/cmake/BuildTreesitterParsers.cmake
+++ b/cmake.deps/cmake/BuildTreesitterParsers.cmake
@@ -1,7 +1,6 @@
function(BuildTSParser LANG TS_URL TS_SHA256 TS_CMAKE_FILE)
set(NAME treesitter-${LANG})
ExternalProject_Add(${NAME}
- PREFIX ${DEPS_BUILD_DIR}
URL ${TS_URL}
URL_HASH SHA256=${TS_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/BuildUnibilium.cmake b/cmake.deps/cmake/BuildUnibilium.cmake
index 2aaba4abab..8322195539 100644
--- a/cmake.deps/cmake/BuildUnibilium.cmake
+++ b/cmake.deps/cmake/BuildUnibilium.cmake
@@ -17,7 +17,6 @@ else()
endif()
ExternalProject_Add(unibilium
- PREFIX ${DEPS_BUILD_DIR}
URL ${UNIBILIUM_URL}
URL_HASH SHA256=${UNIBILIUM_SHA256}
DOWNLOAD_NO_PROGRESS TRUE
diff --git a/cmake.deps/cmake/GetBinaryDeps.cmake b/cmake.deps/cmake/GetBinaryDeps.cmake
index f179e36bcf..3a2e38250a 100644
--- a/cmake.deps/cmake/GetBinaryDeps.cmake
+++ b/cmake.deps/cmake/GetBinaryDeps.cmake
@@ -23,7 +23,6 @@ function(GetBinaryDep)
endif()
ExternalProject_Add(${_gettool_TARGET}
- PREFIX ${DEPS_BUILD_DIR}
URL ${URL}
URL_HASH SHA256=${HASH}
DOWNLOAD_NO_PROGRESS TRUE