From ad9998367297015951a76f29ea91f04341f956cf Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 1 Nov 2018 16:03:21 +0100 Subject: [PATCH] Windows build: link gdiplus library on all Windows targets, not only mingw. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4eb719d1c5..6af21244fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -613,7 +613,7 @@ include( MinGWResourceCompiler ) # Find GDI+ on windows if wxGraphicsContext is available, and only link gdiplus library # if wxGraphicsContext not used, because the cairo printing system uses this library -if( MINGW ) +if( WIN32 ) if( USE_WX_GRAPHICS_CONTEXT ) find_package( GdiPlus ) check_find_package_result( GDI_PLUS_FOUND "GDI+" )