|
|
@@ -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
|