Skip to content

Commit 518e376

Browse files
authored
Merge pull request #5090 from martin-frbg/cmakeutils
Fix CMake interpretation of KERNEL file variables relevant to WoA
2 parents 76db346 + 111c9b0 commit 518e376

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmake/utils.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ endfunction ()
1616
macro(ParseMakefileVars MAKEFILE_IN)
1717
message(STATUS "Reading vars from ${MAKEFILE_IN}...")
1818
set (C_COMPILER ${CMAKE_C_COMPILER_ID})
19+
set (OSNAME ${CMAKE_SYSTEM_NAME})
20+
if (${C_COMPILER} MATCHES Clang)
21+
set (C_COMPILER CLANG)
22+
endif ()
23+
if (${OSNAME} STREQUAL Windows)
24+
set (OSNAME WINNT)
25+
endif ()
26+
message(STATUS OS ${OSNAME} COMPILER ${C_COMPILER})
1927
set (IfElse 0)
2028
set (ElseSeen 0)
2129
set (SkipIfs 0)

0 commit comments

Comments
 (0)