diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-01-25 14:36:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 14:36:17 +0100 |
| commit | b8288df99be8df701308167e4b0b497f003f25e9 (patch) | |
| tree | 3b4144e95a2da6652d0439f31d54685683606e81 /cmake.deps/cmake/BuildLibtermkey.cmake | |
| parent | 06d1e86ff8e7814e4a648293c1a90414fe82bb1e (diff) | |
| download | rneovim-b8288df99be8df701308167e4b0b497f003f25e9.tar.gz rneovim-b8288df99be8df701308167e4b0b497f003f25e9.tar.bz2 rneovim-b8288df99be8df701308167e4b0b497f003f25e9.zip | |
build: introduce default build variables (#21991)
There are a number of cmake variables and cache variables that need to
be passed to all dependencies. This is not only cumbersome, but also
fragile as it's easy to miss adding or removing a flag from a dependency
by accident. Introducing a global variable that controls all builds
makes it much easier to handle our dependencies.
Also fixes the currently broken release workflow as we need to pass the
CMAKE_OSX_ARCHITECTURES variable to all dependencies built with cmake.
Diffstat (limited to 'cmake.deps/cmake/BuildLibtermkey.cmake')
| -rw-r--r-- | cmake.deps/cmake/BuildLibtermkey.cmake | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cmake.deps/cmake/BuildLibtermkey.cmake b/cmake.deps/cmake/BuildLibtermkey.cmake index ac453591e0..6457a864ba 100644 --- a/cmake.deps/cmake/BuildLibtermkey.cmake +++ b/cmake.deps/cmake/BuildLibtermkey.cmake @@ -9,14 +9,10 @@ ExternalProject_Add(libtermkey PATCH_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmake/libtermkeyCMakeLists.txt ${DEPS_BUILD_DIR}/src/libtermkey/CMakeLists.txt - CMAKE_ARGS - -DCMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR} + CMAKE_ARGS ${DEPS_CMAKE_ARGS} -DCMAKE_SHARED_LIBRARY_LINK_C_FLAGS="" # Hack to avoid -rdynamic in Mingw - -DCMAKE_GENERATOR=${CMAKE_GENERATOR} - -DCMAKE_GENERATOR_PLATFORM=${CMAKE_GENERATOR_PLATFORM} - -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DUNIBILIUM_INCLUDE_DIRS=${DEPS_INSTALL_DIR}/include -DUNIBILIUM_LIBRARIES=${DEPS_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}unibilium${CMAKE_STATIC_LIBRARY_SUFFIX} - ${BUILD_TYPE_STRING}) + CMAKE_CACHE_ARGS ${DEPS_CMAKE_CACHE_ARGS}) list(APPEND THIRD_PARTY_DEPS libtermkey) |
