diff --git a/src/osgViewer/CMakeLists.txt b/src/osgViewer/CMakeLists.txt index 028e4e70e..edc002fba 100644 --- a/src/osgViewer/CMakeLists.txt +++ b/src/osgViewer/CMakeLists.txt @@ -82,4 +82,10 @@ TARGET_LINK_LIBRARIES(${LIB_NAME} ${OPENGL_LIBRARIES} ) +IF(MINGW) + TARGET_LINK_LIBRARIES(${LIB_NAME} + gdi32 + ) +ENDIF(MINGW) + INCLUDE(ModuleInstall OPTIONAL)