CMakeLists.txt: fix build for mingw

Fix from iDunk from IRC.
This commit is contained in:
iDunk 2016-06-20 21:34:56 +01:00 committed by moneromooo-monero
parent a645a3e5ff
commit e8baa57326
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ elseif(NOT MSVC)
set(EXTRA_LIBRARIES ${RT}) set(EXTRA_LIBRARIES ${RT})
endif() endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT MINGW)
find_library(DL dl) find_library(DL dl)
set(EXTRA_LIBRARIES ${DL}) set(EXTRA_LIBRARIES ${DL})
endif() endif()