From ba2f8ab97fd15e5b8da85b62e8667ffb3c511189 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Mon, 12 Oct 2020 15:17:17 +0200 Subject: [PATCH] Allow Vstgui to link on MSYS MinGW where find_library fails --- editor/cmake/Vstgui.cmake | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/editor/cmake/Vstgui.cmake b/editor/cmake/Vstgui.cmake index 4e37f19c..0ad30b36 100644 --- a/editor/cmake/Vstgui.cmake +++ b/editor/cmake/Vstgui.cmake @@ -127,19 +127,13 @@ target_include_directories(sfizz-vstgui PUBLIC "${VSTGUI_BASEDIR}") 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") - find_library(DWMAPI_LIBRARY "dwmapi") - find_library(WINDOWSCODECS_LIBRARY "windowscodecs") - find_library(SHLWAPI_LIBRARY "shlwapi") target_link_libraries(sfizz-vstgui PRIVATE - "${OPENGL32_LIBRARY}" - "${D2D1_LIBRARY}" - "${DWRITE_LIBRARY}" - "${DWMAPI_LIBRARY}" - "${WINDOWSCODECS_LIBRARY}" - "${SHLWAPI_LIBRARY}") + "opengl32" + "d2d1" + "dwrite" + "dwmapi" + "windowscodecs" + "shlwapi") endif() elseif(APPLE) target_link_libraries(sfizz-vstgui PRIVATE