summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GenerateExportHeader
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-26 12:41:16 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-26 16:01:06 (GMT)
commit61bea8f3c88581f4e0c8723fc88161795c54f092 (patch)
treeb739e372a722fdab9526f2879306886516770ef7 /Tests/RunCMake/GenerateExportHeader
parent02ec5c4ad2008ce78b80d70afea1217f65d8112c (diff)
downloadCMake-61bea8f3c88581f4e0c8723fc88161795c54f092.zip
CMake-61bea8f3c88581f4e0c8723fc88161795c54f092.tar.gz
CMake-61bea8f3c88581f4e0c8723fc88161795c54f092.tar.bz2
Tests: Remove incidental use of C++98 compiler modes
Several tests specify use of C++98 mode since commit b0f277db38 (HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards, 2014-04-15, v3.1.0-rc1~550^2). The motivating use case for those changes was dropped by commit 49640d3629 (HP-UX: Drop support for building CMake on HP-UX, 2017-08-04, v3.10.0-rc1~304^2), so remove the use of C++98 mode too. Also remove code that, on some compilers, used C++11 instead of C++98, because we can now just use their default mode.
Diffstat (limited to 'Tests/RunCMake/GenerateExportHeader')
-rw-r--r--Tests/RunCMake/GenerateExportHeader/GEH.cmake8
1 files changed, 0 insertions, 8 deletions
diff --git a/Tests/RunCMake/GenerateExportHeader/GEH.cmake b/Tests/RunCMake/GenerateExportHeader/GEH.cmake
index 431d1ce..bf9c302 100644
--- a/Tests/RunCMake/GenerateExportHeader/GEH.cmake
+++ b/Tests/RunCMake/GenerateExportHeader/GEH.cmake
@@ -43,14 +43,6 @@ endif()
include(GenerateExportHeader)
-set(CMAKE_CXX_STANDARD 98)
-
-# 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()
-
add_subdirectory(lib_shared_and_static)
if(CMAKE_SYSTEM_NAME MATCHES "AIX" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU"