Add CMAKE_CXX_LIBRARY_ARCHITECTURE support for Windows-MSVC Platform
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
As it came up in issue #14029 (closed), I discovered that currently no attempt is made to populate CMAKE_CXX_LIBRARY_ARCHTECTURE
for the Windows-MSVC Platform.
The attached patch should do so, for both MSVC and Clang-CL (pretending to be MSVC), based on the path to the MSVC-bundled runtime libraries.
The main outstanding issue is that CMAKE_CXX_LIBRARY_ARCHITECTURE
's not as useful on this platform as it could be, as there's no solid consensus on what this value should be (Microsoft appear to have changed their opinion about it as they've gone through Visual Studio and Platform SDK releases.
I don't have Visual Studio 2013 here or extra platforms installed for the Visual Studio installations I do have, so it's possible the regex is missing some options. It'd be nice if the /lib/
in the path match was part of the regex variable instead of being always present, as then /VC/lib/(.*)
would be a safer match.