1# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2# file Copyright.txt or https://cmake.org/licensing for details.
3
4
5# This module is shared by multiple languages; use include blocker.
6if(__WINDOWS_INTEL)
7  return()
8endif()
9set(__WINDOWS_INTEL 1)
10
11
12if (CMAKE_GENERATOR MATCHES "^Ninja")
13  # retrieve ninja version to enable dependencies configuration
14  # against Ninja capabilities
15  execute_process(COMMAND "${CMAKE_MAKE_PROGRAM}" --version
16    RESULT_VARIABLE _CMAKE_NINJA_RESULT
17    OUTPUT_VARIABLE _CMAKE_NINJA_VERSION
18    ERROR_VARIABLE _CMAKE_NINJA_VERSION)
19  if (NOT _CMAKE_NINJA_RESULT AND _CMAKE_NINJA_VERSION MATCHES "[0-9]+(\\.[0-9]+)*")
20    set (_CMAKE_NINJA_VERSION "${CMAKE_MATCH_0}")
21  endif()
22  unset(_CMAKE_NINJA_RESULT)
23endif()
24
25include(Platform/Windows-MSVC)
26macro(__windows_compiler_intel lang)
27  __windows_compiler_msvc(${lang})
28endmacro()
29