The Clang front-end provided with Visual Studio, clang-cl.exe, does not support the /Qspectre or /MP compiler flags. This patch adds logic to check that the CMAKE_C_COMPILER_ID/CMAKE_CXX_COMPILER_ID variables are not Clang before appending the unsupported flags to CMAKE_C_FLAGS/CMAKE_CXX_FLAGS.
The Clang front-end provided with Visual Studio,
clang-cl.exe
, does not support the/Qspectre
or/MP
compiler flags. This patch adds logic to check that theCMAKE_C_COMPILER_ID
/CMAKE_CXX_COMPILER_ID
variables are notClang
before appending the unsupported flags toCMAKE_C_FLAGS
/CMAKE_CXX_FLAGS
.