summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-10 08:41:38 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-10 08:41:38 (GMT)
commit6aca0e257be36949299b28cbfa12225269e28a03 (patch)
tree0bf9e60825c7c97ee05327b6ec99d003f7a3766c
parentd123bce1ebb9ef8406272fece45e44b66b3df11a (diff)
downloadCMake-6aca0e257be36949299b28cbfa12225269e28a03.zip
CMake-6aca0e257be36949299b28cbfa12225269e28a03.tar.gz
CMake-6aca0e257be36949299b28cbfa12225269e28a03.tar.bz2
Short-circuit the tests on unsupported compilers.
-rw-r--r--Tests/Module/GenerateExportHeader/CMakeLists.txt6
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()