Building a project like Azure UMOCK-C as a shared build (using WINDOWS_EXPORT_ALL_SYMBOLS to make it work at all) causes MSBUILD to fail with error -1073741819. I drilled it down to cmake's __create_def which generated empty def-files if the cl.exe switch /GL is in use. I cannot reproduce the error when running cmake stand-alone with the object-list. The def file is empty, but the %ERRORLEVEL% is 0.
Should WINDOWS_EXPORT_ALL_SYMBOLS work with /GL? This is cmake on Windows, Version 3.23.3 and 3.28.3 tested. Visual Studio 2019 and 2022