diff --git a/CMakeLists.txt b/CMakeLists.txt index 09ca449d5..d821cd88c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -444,7 +444,7 @@ elseif(NOT MSVC) set(EXTRA_LIBRARIES ${RT}) endif() -if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT MINGW) find_library(DL dl) set(EXTRA_LIBRARIES ${DL}) endif()