diff options
author | Zsolt Parragi <zsolt.parragi@cancellar.hu> | 2019-07-06 12:56:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-09 15:30:25 (GMT) |
commit | 417eb5739a35a57bc345bf32c56c80d13e33b292 (patch) | |
tree | 7a764345fde7e35e565d8d3ff4d42409938e49e1 /Tests/Assembler/CMakeLists.txt | |
parent | f56393f0bd4d54db7885e89e8019c5e790bd6aa6 (diff) | |
download | CMake-417eb5739a35a57bc345bf32c56c80d13e33b292.zip CMake-417eb5739a35a57bc345bf32c56c80d13e33b292.tar.gz CMake-417eb5739a35a57bc345bf32c56c80d13e33b292.tar.bz2 |
Tests: fix some Clang failures on Windows
* Execute MSVCRuntimeLibrary tests for GNU command line mode Clang on
Windows using the MSVC ABI
* Assembler tests should be executed with the Ninja generator
* Assembler tests shouldn't be executed with clang-cl
* Fixed a condition in the Preprocess test for clang-cl
* Adjusted the conditions on some MSVC specific tests
Diffstat (limited to 'Tests/Assembler/CMakeLists.txt')
-rw-r--r-- | Tests/Assembler/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/Assembler/CMakeLists.txt b/Tests/Assembler/CMakeLists.txt index fb17ebb..21b265c 100644 --- a/Tests/Assembler/CMakeLists.txt +++ b/Tests/Assembler/CMakeLists.txt @@ -7,9 +7,10 @@ set(SRCS) # (at least) the following toolchains can process assembler files directly # and also generate assembler files from C: -if("${CMAKE_GENERATOR}" MATCHES "Makefile|Xcode" AND +if("${CMAKE_GENERATOR}" MATCHES "Makefile|Xcode|Ninja" AND NOT CMAKE_OSX_ARCHITECTURES) - if((CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang|HP|SunPro|XL)$") OR (CMAKE_C_COMPILER_ID STREQUAL "Intel" AND UNIX)) + if((CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang|HP|SunPro|XL)$") OR (CMAKE_C_COMPILER_ID STREQUAL "Intel" AND UNIX) + AND NOT (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND "x${CMAKE_C_COMPILER_FRONTEND_VARIANT}" STREQUAL "xMSVC")) set(C_FLAGS "${CMAKE_C_FLAGS}") separate_arguments(C_FLAGS) if(CMAKE_OSX_SYSROOT AND CMAKE_C_SYSROOT_FLAG AND NOT ";${C_FLAGS};" MATCHES ";${CMAKE_C_SYSROOT_FLAG};") |