Link system libs MinGW-only
This commit is contained in:
parent
52e7120dbd
commit
73fde1ae22
1 changed files with 16 additions and 13 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue