CMake: Fix build with wxBUILD_MONOLITHIC

Add wxUSE_WEBVIEW test before using wx_webview_copy_webview2_loader.

Closes #22315, #22316.
This commit is contained in:
kkocdko 2022-04-16 14:48:34 +08:00 committed by Vadim Zeitlin
parent 4fa3b8c276
commit 02741a6c92

View File

@ -96,7 +96,9 @@ if(wxBUILD_MONOLITHIC)
foreach(dep ${wxMONO_DEPENDENCIES})
add_dependencies(wxmono ${dep})
endforeach()
wx_webview_copy_webview2_loader(wxmono)
if(wxUSE_WEBVIEW)
wx_webview_copy_webview2_loader(wxmono)
endif()
endif()
# Propagate variable(s) to parent scope