diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-08-10 08:41:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-08-10 08:41:38 (GMT) |
commit | 6aca0e257be36949299b28cbfa12225269e28a03 (patch) | |
tree | 0bf9e60825c7c97ee05327b6ec99d003f7a3766c | |
parent | d123bce1ebb9ef8406272fece45e44b66b3df11a (diff) | |
download | CMake-6aca0e257be36949299b28cbfa12225269e28a03.zip CMake-6aca0e257be36949299b28cbfa12225269e28a03.tar.gz CMake-6aca0e257be36949299b28cbfa12225269e28a03.tar.bz2 |
Short-circuit the tests on unsupported compilers.
-rw-r--r-- | Tests/Module/GenerateExportHeader/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Module/GenerateExportHeader/CMakeLists.txt b/Tests/Module/GenerateExportHeader/CMakeLists.txt index 4570280..52fe79f 100644 --- a/Tests/Module/GenerateExportHeader/CMakeLists.txt +++ b/Tests/Module/GenerateExportHeader/CMakeLists.txt @@ -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() |