aboutsummaryrefslogtreecommitdiff
path: root/cmake.deps/cmake/BuildMsgpack.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake.deps/cmake/BuildMsgpack.cmake')
-rw-r--r--cmake.deps/cmake/BuildMsgpack.cmake8
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()