diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-02-19 21:11:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 21:11:27 +0100 |
commit | 5ffd3d035dfd3d7f6e66edbaa895b98792ba3de3 (patch) | |
tree | 1c2f43a2776b5ea4afc371a9831376a461f0ca37 /cmake.deps/cmake/BuildMsgpack.cmake | |
parent | bfe6b49447744cea1cd941660b2a3a501a0701cb (diff) | |
download | rneovim-5ffd3d035dfd3d7f6e66edbaa895b98792ba3de3.tar.gz rneovim-5ffd3d035dfd3d7f6e66edbaa895b98792ba3de3.tar.bz2 rneovim-5ffd3d035dfd3d7f6e66edbaa895b98792ba3de3.zip |
build: build all dependencies in parallel (#22329)
Previously, all targets were connected in one main target called
third-party in order to remove any potentially conflicting shared
library. We can make each dependency target independent of each other by
only removing shared libraries from luajit and msgpack in their own
targets, as only these has unwanted shared libraries.
Diffstat (limited to 'cmake.deps/cmake/BuildMsgpack.cmake')
-rw-r--r-- | cmake.deps/cmake/BuildMsgpack.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake.deps/cmake/BuildMsgpack.cmake b/cmake.deps/cmake/BuildMsgpack.cmake index b1a77ee835..ef7568ae0a 100644 --- a/cmake.deps/cmake/BuildMsgpack.cmake +++ b/cmake.deps/cmake/BuildMsgpack.cmake @@ -11,4 +11,10 @@ ExternalProject_Add(msgpack -D MSGPACK_BUILD_EXAMPLES=OFF CMAKE_CACHE_ARGS ${DEPS_CMAKE_CACHE_ARGS}) -list(APPEND THIRD_PARTY_DEPS msgpack) +if (NOT MSVC) + add_custom_target(clean_shared_libraries_msgpack ALL + COMMAND ${CMAKE_COMMAND} + -D REMOVE_FILE_GLOB=${DEPS_INSTALL_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}*${CMAKE_SHARED_LIBRARY_SUFFIX}* + -P ${PROJECT_SOURCE_DIR}/cmake/RemoveFiles.cmake) + add_dependencies(clean_shared_libraries_msgpack msgpack) +endif() |