From 5fdf75947822bc17d30a9e60022a4fc77b4cdf63 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 30 Sep 2015 09:53:52 -0400 Subject: 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. --- Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt b/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt index c538280..ffee035 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 -- cgit v0.12