mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 12:11:04 -06:00
Tests: fix Complex building on Clang/C2
This commit is contained in:
committed by
Brad King
parent
ada3736c78
commit
cab2ec111b
@@ -2,6 +2,7 @@
|
|||||||
# A more complex test case
|
# A more complex test case
|
||||||
#
|
#
|
||||||
cmake_minimum_required(VERSION 2.4)
|
cmake_minimum_required(VERSION 2.4)
|
||||||
|
cmake_policy(SET CMP0054 NEW)
|
||||||
project (Complex)
|
project (Complex)
|
||||||
|
|
||||||
# Test that renaming a built-in works when configured multiple times.
|
# Test that renaming a built-in works when configured multiple times.
|
||||||
@@ -438,6 +439,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL HP AND
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -AA")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -AA")
|
||||||
endif ()
|
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
|
# Create the libs and the main exe
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user