Explorar o código

Short-circuit the tests on unsupported compilers.

Stephen Kelly %!s(int64=14) %!d(string=hai) anos
pai
achega
6aca0e257b
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      Tests/Module/GenerateExportHeader/CMakeLists.txt

+ 6 - 0
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()