summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-28 13:22:29 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-05-28 13:22:33 (GMT)
commitd375618921e16c229e748c87ea16190f2de74337 (patch)
tree3a06ffc8c26a4e9fff41fde1b5a6ac320020b5aa /Tests
parentff1563199cfa36fca21889fce8a6b89bcb7db241 (diff)
parent370d0d25315cc2fae38e1c6397b0094d43384c16 (diff)
downloadCMake-d375618921e16c229e748c87ea16190f2de74337.zip
CMake-d375618921e16c229e748c87ea16190f2de74337.tar.gz
CMake-d375618921e16c229e748c87ea16190f2de74337.tar.bz2
Merge topic 'sunpro-std-flags'
370d0d25 SunPro: update flags used for CMake itself f1f21e30 SunPro: set -library=stlport as standard compile option for C++98 9316120c SunPro: add standard compile option for C++03 783fbb77 Tests: Compile entire Plugin test with the same language standard Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !879
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Plugin/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/Plugin/CMakeLists.txt b/Tests/Plugin/CMakeLists.txt
index f52b479..9e2b4ab 100644
--- a/Tests/Plugin/CMakeLists.txt
+++ b/Tests/Plugin/CMakeLists.txt
@@ -2,6 +2,9 @@ cmake_minimum_required (VERSION 2.6)
cmake_policy(SET CMP0054 NEW)
project(Plugin)
+# We need proper C++98 support from the compiler
+set(CMAKE_CXX_STANDARD 98)
+
# Test per-target output directory properties.
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${Plugin_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${Plugin_BINARY_DIR}/lib/plugin)
@@ -25,9 +28,6 @@ include_directories(
${Plugin_SOURCE_DIR}/include
)
-# We need proper C++98 support from the compiler
-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