Build: Support LLVM/Windows

Since LLVM/Windows emulates Visual Studio, CMake sets
CMAKE_C_SIMULATE_ID="MSVC" but does not set MSVC.  Thus, our build
system needs to enable most (but not all) of the Visual Studio features
when CMAKE_C_SIMLUATE_ID="MSVC".  Support for LLVM/Windows is currently
undocumented because it isn't a standalone build environment.  (It
requires the Visual Studio and Windows SDK headers and link libraries.)

Closes #786
This commit is contained in:
DRC
2024-09-16 12:30:27 -04:00
parent a9f7490cda
commit 2351a2d558
3 changed files with 33 additions and 20 deletions

View File

@@ -66,7 +66,7 @@ endif() # Linux
if(WIN32)
if(MSVC)
if(MSVC_LIKE)
set(INST_PLATFORM "Visual C++")
set(INST_ID vc)
set(INST_NAME ${CMAKE_PROJECT_NAME}-${VERSION}-${INST_ID})