FLTK logo

[master] 40569e5 - Fix MinGW build with shared libs (#445)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 40569e5 - Fix MinGW build with shared libs (#445) "Albrecht Schlosser" May 21, 2022  
 
commit 40569e53c7f5eb0efca944c3c8520f9b6aa1ec5a
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Sun May 22 00:07:40 2022 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Sun May 22 00:07:40 2022 +0200

    Fix MinGW build with shared libs (#445)
    
    Add missing lib 'gdiplus' to shared libs.

 src/CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git src/CMakeLists.txt src/CMakeLists.txt
index c0c71a6..e75c301 100644
--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -544,6 +544,9 @@ endif (FLTK_USE_X11)
 
 if (WIN32)
   list (APPEND OPTIONAL_LIBS comctl32 ws2_32)
+  if (USE_GDIPLUS)
+    list (APPEND OPTIONAL_LIBS gdiplus)
+  endif ()
 endif (WIN32)
 
 if (HAVE_XINERAMA)
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.