From a8d1d85ed2b115a8050f31a5a9cf5e5bd475da9f Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 6 Aug 2023 21:34:21 +0300 Subject: [PATCH] Update CMakeLists.txt Copy the dpp dll to the binary folder. --- module/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/CMakeLists.txt b/module/CMakeLists.txt index 0ee59246..496edec4 100644 --- a/module/CMakeLists.txt +++ b/module/CMakeLists.txt @@ -246,7 +246,12 @@ else() endif() # Copy module into the plug-ins folder add_custom_command(TARGET SqModule POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $ "${PROJECT_SOURCE_DIR}/bin/plugins") - +# Copy DPP into the bin folder +if (ENABLE_DISCORD) + if (WIN32 OR MINGW) + add_custom_command(TARGET SqModule POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $ "${PROJECT_SOURCE_DIR}/bin") + endif() +endif() # Copy several dependent DLLs on windows to make distribution easier (used mainly by people that distribute builds) if(WIN32 AND MINGW AND COPY_DEPENDENCIES) get_filename_component(MINGW_BIN_PATH ${CMAKE_C_COMPILER} DIRECTORY REALPATH)