Commit 27b34d20 authored by Lotrado's avatar Lotrado
Browse files

Check for MinGW in particular instead of for any GNU compiler to decide if we...

Check for MinGW in particular instead of for any GNU compiler to decide if we need to link against mingw32.

This condition should be more precise, considering other potential environments like cygwin.
parent b8973381
......@@ -34,7 +34,7 @@ target_link_libraries(demo
doctest
)
if (WIN32)
if(CMAKE_CXX_COMPILER_ID MATCHES GNU)
if(MINGW)
target_link_libraries(demo
PRIVATE
mingw32
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment