vcpkg/ports/highfive/fix_compiler_flags.patch
Alexander Neumann 9547b761ae
[highfive] clang-cl fix flags (#26055)
* highfive fix compiler flags for clang-cl

* v db
2022-08-01 13:43:22 -07:00

15 lines
756 B
Diff

diff --git a/CMake/config/CompilerFlagsHelpers.cmake b/CMake/config/CompilerFlagsHelpers.cmake
index 67e7d9fe1..11ae2036c 100644
--- a/CMake/config/CompilerFlagsHelpers.cmake
+++ b/CMake/config/CompilerFlagsHelpers.cmake
@@ -32,6 +32,9 @@ foreach(COMPILER_LANGUAGE ${SUPPORTED_COMPILER_LANGUAGE_LIST})
set(CMAKE_${COMPILER_LANGUAGE}_COMPILER_IS_MSVC ON)
elseif(${CMAKE_${COMPILER_LANGUAGE}_COMPILER_ID} MATCHES "Clang")
set(CMAKE_${COMPILER_LANGUAGE}_COMPILER_IS_CLANG ON)
+ if(CMAKE_${COMPILER_LANGUAGE}_COMPILER_FRONTEND_VARIANT MATCHES "MSVC")
+ set(CMAKE_${COMPILER_LANGUAGE}_COMPILER_IS_MSVC ON)
+ endif()
elseif(CMAKE_${COMPILER_LANGUAGE}_COMPILER_ID MATCHES "GNU")
set(CMAKE_${COMPILER_LANGUAGE}_COMPILER_IS_GCC ON)
else()