diff options
author | Brad King <brad.king@kitware.com> | 2015-09-30 13:53:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-30 13:53:52 (GMT) |
commit | 5fdf75947822bc17d30a9e60022a4fc77b4cdf63 (patch) | |
tree | bf821d558c9566a15ef08eddb8cf9cbc86b7c824 /Tests/Module | |
parent | c824b23d15b92247f3527f1b884c23d34e6749b5 (diff) | |
download | CMake-5fdf75947822bc17d30a9e60022a4fc77b4cdf63.zip CMake-5fdf75947822bc17d30a9e60022a4fc77b4cdf63.tar.gz CMake-5fdf75947822bc17d30a9e60022a4fc77b4cdf63.tar.bz2 |
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.txt | 3 |
1 files changed, 2 insertions, 1 deletions
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 |