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