summaryrefslogtreecommitdiffstats
path: root/Tests/ComplexOneConfig
diff options
context:
space:
mode:
authorMariusz PluciƄski <mplucinski@mplucinski.com>2016-02-20 15:52:40 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-10 14:11:41 (GMT)
commit1902c293baf37035e6f1d2bbd17bcbc98f87e1d9 (patch)
treec0f8a10298a7af0433575fe214f3e658c03cc78d /Tests/ComplexOneConfig
parentcab2ec111b68a606e27c2a8c1cecf75d37d0aaf6 (diff)
downloadCMake-1902c293baf37035e6f1d2bbd17bcbc98f87e1d9.zip
CMake-1902c293baf37035e6f1d2bbd17bcbc98f87e1d9.tar.gz
CMake-1902c293baf37035e6f1d2bbd17bcbc98f87e1d9.tar.bz2
Tests: fix complexOneConfig building on Clang/C2
Diffstat (limited to 'Tests/ComplexOneConfig')
-rw-r--r--Tests/ComplexOneConfig/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt
index 3b73e70..2d92809 100644
--- a/Tests/ComplexOneConfig/CMakeLists.txt
+++ b/Tests/ComplexOneConfig/CMakeLists.txt
@@ -2,6 +2,7 @@
# A more complex test case
#
cmake_minimum_required(VERSION 2.4)
+cmake_policy(SET CMP0054 NEW)
project (Complex)
# Try setting a new policy. The IF test is for coverage.
@@ -401,6 +402,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL HP AND
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -AA")
endif ()
+# Clang/C2 in C++98 mode cannot properly handle some of MSVC headers
+if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
+ CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
+ set(CMAKE_CXX_STANDARD 11)
+endif()
+
#
# Create the libs and the main exe
#