JUCE8 Windows WebView2

That was the major missing bit.

Thanks @mthierman and @attila !

I’ve already had something similar to your suggestion but never noticed the JUCE_WEBVIEW2_PACKAGE_LOCATION.

So now I have:

if(MSVC)
    find_program(NUGET_EXE NAMES nuget)
    if(NOT NUGET_EXE)
        message("NUGET.EXE not found.")
        message(FATAL_ERROR "Please install this executable, and run CMake again.")
    endif()
    execute_process(COMMAND ${NUGET_EXE} install "Microsoft.Web.WebView2" -OutputDirectory ${CMAKE_BINARY_DIR}/packages)
    set(WebView2_DIR ${CMAKE_BINARY_DIR}/packages/Microsoft.Web.WebView2)
    set(JUCE_WEBVIEW2_PACKAGE_LOCATION
        "${CMAKE_BINARY_DIR}/packages"
    )

Which was suggested originally here -

In addition to turning the NEEDS_WEBVIEW2

Edit - removed the explicit version as it was from the original post and might be too old.