summaryrefslogtreecommitdiffstats
path: root/Tests/Module
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-08 15:27:55 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-05-08 15:27:55 (GMT)
commit9add7071a589892c856bbfd53aa79b352c3f3c08 (patch)
treec4af429c2277e941356bdd7358b48f8f31f7286d /Tests/Module
parent7b3def93b630ee7964b1d33b2b601e07c7797438 (diff)
parentb0f277db3885cf75b4a153442a3e30ecedfab049 (diff)
downloadCMake-9add7071a589892c856bbfd53aa79b352c3f3c08.zip
CMake-9add7071a589892c856bbfd53aa79b352c3f3c08.tar.gz
CMake-9add7071a589892c856bbfd53aa79b352c3f3c08.tar.bz2
Merge topic 'hp-cpp98-tests'
b0f277db HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards
Diffstat (limited to 'Tests/Module')
-rw-r--r--Tests/Module/GenerateExportHeader/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/Module/GenerateExportHeader/CMakeLists.txt b/Tests/Module/GenerateExportHeader/CMakeLists.txt
index bf867a9..b52c44d 100644
--- a/Tests/Module/GenerateExportHeader/CMakeLists.txt
+++ b/Tests/Module/GenerateExportHeader/CMakeLists.txt
@@ -57,6 +57,15 @@ endif()
include(GenerateExportHeader)
+set(CMAKE_CXX_STANDARD 98)
+
+# Those versions of the HP compiler that need a flag to get proper C++98
+# template support also need a flag to use the newer C++ library.
+if (CMAKE_CXX_COMPILER_ID STREQUAL HP AND
+ CMAKE_CXX98_STANDARD_COMPILE_OPTION STREQUAL "+hpxstd98")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -AA")
+endif ()
+
add_subdirectory(lib_shared_and_static)
add_compiler_export_flags()