Short-circuit the tests on unsupported compilers.
This commit is contained in:
parent
d123bce1eb
commit
6aca0e257b
|
@ -88,6 +88,12 @@ include(GenerateExportHeader)
|
||||||
|
|
||||||
add_compiler_export_flags()
|
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)
|
if (MSVC)
|
||||||
add_definitions(-DCOMPILER_IS_MSVC)
|
add_definitions(-DCOMPILER_IS_MSVC)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue