Link system libs MinGW-only

This commit is contained in:
Jean Pierre Cimalando 2020-03-06 17:07:37 +01:00 committed by Paul Fd
parent 52e7120dbd
commit 73fde1ae22

View file

@ -175,6 +175,8 @@ function(plugin_add_vstgui NAME)
target_include_directories("${NAME}" PRIVATE "${VST3SDK_BASEDIR}/vstgui4")
if(WIN32)
if (NOT MSVC)
# autolinked on MSVC with pragmas
find_library(OPENGL32_LIBRARY "opengl32")
find_library(D2D1_LIBRARY "d2d1")
find_library(DWRITE_LIBRARY "dwrite")
@ -188,6 +190,7 @@ function(plugin_add_vstgui NAME)
"${DWMAPI_LIBRARY}"
"${WINDOWSCODECS_LIBRARY}"
"${SHLWAPI_LIBRARY}")
endif()
elseif(APPLE)
find_library(APPLE_COREFOUNDATION_LIBRARY "CoreFoundation")
find_library(APPLE_COCOA_LIBRARY "Cocoa")