Short-circuit the tests on unsupported compilers.

This commit is contained in:
Stephen Kelly 2011-08-10 10:41:38 +02:00
parent d123bce1eb
commit 6aca0e257b
1 changed files with 6 additions and 0 deletions

View File

@ -88,6 +88,12 @@ include(GenerateExportHeader)
add_compiler_export_flags()
if(NOT ((USE_COMPILER_HIDDEN_VISIBILITY AND COMPILER_HAS_HIDDEN_VISIBILITY) OR WIN32))
message(WARNING "Compiler does not support export feature")
return()
endif()
if (MSVC)
add_definitions(-DCOMPILER_IS_MSVC)
endif()