cmake/Modules/Platform/Windows-Clang.cmake

33 lines
1.1 KiB
CMake
Raw Normal View History

2009-10-04 10:30:41 +03:00
#=============================================================================
2014-08-03 19:52:23 +02:00
# Copyright 2001-2013 Kitware, Inc.
2009-10-04 10:30:41 +03:00
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
2010-11-13 01:00:53 +02:00
# (To distribute this file outside of CMake, substitute the full
2009-10-04 10:30:41 +03:00
# License text for the above reference.)
2014-08-03 19:52:23 +02:00
# This module is shared by multiple languages; use include blocker.
if(__WINDOWS_CLANG)
return()
endif()
set(__WINDOWS_CLANG 1)
2015-04-27 22:25:09 +02:00
if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC")
2014-08-03 19:52:23 +02:00
include(Platform/Windows-MSVC)
macro(__windows_compiler_clang lang)
__windows_compiler_msvc(${lang})
endmacro()
else()
include(Platform/Windows-GNU)
macro(__windows_compiler_clang lang)
__windows_compiler_gnu(${lang})
endmacro()
endif()