summaryrefslogtreecommitdiffstats
path: root/Tests/Plugin
diff options
context:
space:
mode:
authorMariusz PluciƄski <mplucinski@mplucinski.com>2016-02-20 23:24:14 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-10 14:11:41 (GMT)
commit3541af67b71632f352a086524a73ee954a058ac0 (patch)
treee4bee146b8a9087d4046235935af1c30ae344485 /Tests/Plugin
parent1902c293baf37035e6f1d2bbd17bcbc98f87e1d9 (diff)
downloadCMake-3541af67b71632f352a086524a73ee954a058ac0.zip
CMake-3541af67b71632f352a086524a73ee954a058ac0.tar.gz
CMake-3541af67b71632f352a086524a73ee954a058ac0.tar.bz2
Tests: fix Plugin building on Clang/C2
Diffstat (limited to 'Tests/Plugin')
-rw-r--r--Tests/Plugin/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/Plugin/CMakeLists.txt b/Tests/Plugin/CMakeLists.txt
index 2b7bac1..49ff317 100644
--- a/Tests/Plugin/CMakeLists.txt
+++ b/Tests/Plugin/CMakeLists.txt
@@ -1,4 +1,5 @@
cmake_minimum_required (VERSION 2.6)
+cmake_policy(SET CMP0054 NEW)
project(Plugin)
# Test per-target output directory properties.
@@ -34,6 +35,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 an executable that exports an API for use by plugins.
add_executable(example_exe src/example_exe.cxx)
set_target_properties(example_exe PROPERTIES