aboutsummaryrefslogtreecommitdiff
path: root/third-party/cmake/InstallMsgpack.cmake
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-09-14 16:23:10 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-09-14 16:23:10 -0400
commit53ef7038d84ead3094b828ac0fc540d10e99c1fe (patch)
tree0872ef19f6a4111d5d686e44604886d31555dea3 /third-party/cmake/InstallMsgpack.cmake
parent0838b9773958d06b87e4b290b2716f19f904fa95 (diff)
parent5fa54a2dc09ac1080992e62e9aab7985c8f3ee7b (diff)
downloadrneovim-53ef7038d84ead3094b828ac0fc540d10e99c1fe.tar.gz
rneovim-53ef7038d84ead3094b828ac0fc540d10e99c1fe.tar.bz2
rneovim-53ef7038d84ead3094b828ac0fc540d10e99c1fe.zip
Merge pull request #1173 from jszakmeister/build-portability-fix
third-party: avoid using `rm` in the install command closes #1171
Diffstat (limited to 'third-party/cmake/InstallMsgpack.cmake')
-rw-r--r--third-party/cmake/InstallMsgpack.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/third-party/cmake/InstallMsgpack.cmake b/third-party/cmake/InstallMsgpack.cmake
new file mode 100644
index 0000000000..d5e5d7e816
--- /dev/null
+++ b/third-party/cmake/InstallMsgpack.cmake
@@ -0,0 +1,12 @@
+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()