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

This will reduce required boilerplate, but more importantly it will automatically unset variables ending on URL. This will help people needing to avoid to unset the URL variable each time a new dependency is added. It is possible that this may remove a non-download variable ending on "URL" in the future, however, the risk of this is likely much lower than the risk of someone forgetting to unset the variable.
18 lines
634 B
CMake
18 lines
634 B
CMake
ExternalProject_Add(msgpack
|
|
URL ${MSGPACK_URL}
|
|
URL_HASH SHA256=${MSGPACK_SHA256}
|
|
DOWNLOAD_NO_PROGRESS TRUE
|
|
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/msgpack
|
|
CMAKE_ARGS ${DEPS_CMAKE_ARGS}
|
|
-D MSGPACK_BUILD_TESTS=OFF
|
|
-D MSGPACK_BUILD_EXAMPLES=OFF
|
|
CMAKE_CACHE_ARGS ${DEPS_CMAKE_CACHE_ARGS})
|
|
|
|
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()
|