From 464800a80f5adc4425d146b1ed2d383ce71992ee Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 31 Jan 2021 23:04:36 +0200 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 653f425f..730d72f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,11 @@ set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/vendor/POCO/cmake) # Several plugin options option(ENABLE_API21 "Build for 2.1 API." OFF) -option(COPY_DEPENDENCIES "Copy deppendent DLLs into the deps folder." OFF) option(FORCE_32BIT_BIN "Create a 32-bit executable binary if the compiler defaults to 64-bit." OFF) +# This option should only be available in certain conditions +if(WIN32 AND MINGW) + option(COPY_DEPENDENCIES "Copy deppendent DLLs into the deps folder." OFF) +endif() include(CheckCXXCompilerFlag) # C++ standard availability check