Windows-Clang.cmake 684 B

1234567891011121314151617181920212223
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This module is shared by multiple languages; use include blocker.
  4. if(__WINDOWS_CLANG)
  5. return()
  6. endif()
  7. set(__WINDOWS_CLANG 1)
  8. if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC"
  9. OR "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC")
  10. include(Platform/Windows-MSVC)
  11. macro(__windows_compiler_clang lang)
  12. set(_COMPILE_${lang} "${_COMPILE_${lang}_MSVC}")
  13. __windows_compiler_msvc(${lang})
  14. endmacro()
  15. else()
  16. include(Platform/Windows-GNU)
  17. macro(__windows_compiler_clang lang)
  18. __windows_compiler_gnu(${lang})
  19. endmacro()
  20. endif()