Exclude win32 from hidden visibility checks.

This commit is contained in:
Stephen Kelly 2011-08-17 02:40:56 +02:00
parent afae7a95a0
commit a9a8b9e8d1
1 changed files with 3 additions and 1 deletions

View File

@ -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()