aboutsummaryrefslogtreecommitdiff
path: root/third-party/cmake/InstallMsgpack.cmake
diff options
context:
space:
mode:
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()