summaryrefslogtreecommitdiff
path: root/Tests/Module
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-30 09:53:52 -0400
committerBrad King <brad.king@kitware.com>2015-09-30 09:53:52 -0400
commit5fdf75947822bc17d30a9e60022a4fc77b4cdf63 (patch)
treebf821d558c9566a15ef08eddb8cf9cbc86b7c824 /Tests/Module
parentc824b23d15b92247f3527f1b884c23d34e6749b5 (diff)
downloadcmake-5fdf75947822bc17d30a9e60022a4fc77b4cdf63.tar.gz
Tests: Suppress WriteCompilerDetectionHeader failure on SunPro
We do support SunPro 5.13 compiler features, but only on Linux. Suppress the portion of the test that fails on Solaris until the larger problem can be addressed.
Diffstat (limited to 'Tests/Module')
-rw-r--r--Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt b/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt
index c538280743..ffee035a31 100644
--- a/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt
+++ b/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt
@@ -25,7 +25,8 @@ if (NOT CMAKE_CXX_COMPILE_FEATURES AND NOT CMAKE_C_COMPILE_FEATURES)
)
add_executable(WriteCompilerDetectionHeader "${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp")
- if(UNIX OR NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ if((UNIX OR NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ AND NOT CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
include(CheckCXXSourceCompiles)
check_cxx_source_compiles("#include \"${CMAKE_CURRENT_BINARY_DIR}/test_compiler_detection.h\"\nint main() { return 0; }\n"
file_include_works