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:
parent
4fa3b8c276
commit
02741a6c92
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user