From 45b31788bd7fd0ce33272c1f5c2b423178827606 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mariusz=20Plucin=CC=81ski?= <mplucinski@mplucinski.com>
Date: Fri, 19 Feb 2016 23:45:35 +0100
Subject: Tests: fix Module.WriteCompilerDetectionHeader building on Clang/C2

---
 Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt b/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt
index c538280..1a2b237 100644
--- a/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt
+++ b/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt
@@ -79,7 +79,8 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
 endif()
 
 if (CMAKE_C_COMPILER_ID STREQUAL "GNU"
-    OR CMAKE_C_COMPILER_ID STREQUAL "Clang"
+    OR (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND
+        NOT CMAKE_C_SIMULATE_ID STREQUAL "MSVC")
     OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
   add_executable(C_undefined c_undefined.c)
   set_property(TARGET C_undefined PROPERTY C_STANDARD 90)
-- 
2.7.1

