mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 13:58:18 +00:00

Also, the command was removing only .so versions of the library, and not the the `.dylib` under Mac OS X, and in a way that it would fail if the files weren't present. Instead, let's delegate to a CMake script--to get the portability--and use a glob to detect and remove the shared versions of the library. Hopefully, this will become unnecessary as msgpack's build becomes more full-featured, and we can just tell it to build the static version instead.
13 lines
261 B
CMake
13 lines
261 B
CMake
execute_process(
|
|
COMMAND ${MAKE_PRG} install
|
|
RESULT_VARIABLE res)
|
|
|
|
if(NOT res EQUAL 0)
|
|
message(FATAL_ERROR "Installing msgpack failed.")
|
|
endif()
|
|
|
|
file(GLOB FILES_TO_REMOVE ${REMOVE_FILE_GLOB})
|
|
if(FILES_TO_REMOVE)
|
|
file(REMOVE ${FILES_TO_REMOVE})
|
|
endif()
|