https://bugs.winehq.org/show_bug.cgi?id=46901
--- Comment #7 from scorpion81 scorpion8182@googlemail.com --- (In reply to Fabian Maurer from comment #6)
Sent in a patch that fixes the issue here: https://source.winehq.org/patches/data/161583 Let's see how that goes.
That patch works fine here, it expands all nested variables properly. But my (maybe overly) complex cross compile setup still fails with recent master, because it downloads some source archives during build process (those are https connections, and the CMAKE file() invokes the downloads.) Those downloads fail and leave a file of 0kb, which did not happen with 4.0. But thats a story for another bug report maybe, i just wanted to mention it here.
Was also trying to let the setup run with linux clang-cl and the msvc-clang-cl tool chain file, but due to the heterogenous structure of the libs build systems (some have cmake, some do configure make, and some have predefined Makefiles with hardcoded stuff that needs to be live-patched during build process in order to make it work) its not so easy as i assumed it was. Mentioning this just to give a context and for completeness.