mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 14:30:27 +00:00
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()
|
||||
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user