From a9a8b9e8d194eb78cf5fb74fb902a0cf233f8ac0 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 17 Aug 2011 02:40:56 +0200 Subject: Exclude win32 from hidden visibility checks. --- Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt b/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt index 70bafb6..7775e14 100644 --- a/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt +++ b/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt @@ -41,7 +41,9 @@ check_cxx_compiler_flag(-fvisibility=hidden HAS_HIDDEN_VISIBILITY) message("HAS_HIDDEN_VISIBILITY: ${HAS_HIDDEN_VISIBILITY}\n\nCOMPILE OUTPUT:\n${OUTPUT}") if(CMAKE_COMPILER_IS_GNUCXX) - test_pass(HAS_HIDDEN_VISIBILITY "GCC should support hidden visibility, but does not.") + if(NOT WIN32) + test_pass(HAS_HIDDEN_VISIBILITY "GCC should support hidden visibility, but does not.") + endif() else() message("Unhandled Platform") endif() -- cgit v0.12