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/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/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index b8b7e21..d951316 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1877,9 +1877,11 @@ ${CMake_SOURCE_DIR}/Utilities/Release/push.bash --dir dev -- '${CMake_BUILD_NIGH endif () list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/SubDir") - if(MSVC) - ADD_TEST_MACRO(ForceInclude foo) + if(MSVC OR (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND CMAKE_C_SIMULATE_ID STREQUAL "MSVC")) ADD_TEST_MACRO(PDBDirectoryAndName myexe) + if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang" OR NOT "x${CMAKE_C_COMPILER_FRONTEND_VARIANT}" STREQUAL "xGNU") + ADD_TEST_MACRO(ForceInclude foo) + endif() if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") ADD_TEST_MACRO(PrecompiledHeader foo) endif() |