Fix compilation with visibility flags with mingw.

Thanks to Patrick Spendrin.
This commit is contained in:
Andreas Schneider
2009-08-12 14:05:17 +02:00
parent 8e6ab1809f
commit d9b7e4cb7a
2 changed files with 7 additions and 6 deletions

View File

@@ -16,7 +16,9 @@ set(SYSCONFDIR ${SYSCONF_INSTALL_DIR})
set(BINARYDIR ${CMAKE_BINARY_DIR})
set(SOURCEDIR ${CMAKE_SOURCE_DIR})
if(CMAKE_COMPILER_IS_GNUC)
check_c_compiler_flag("-fvisibility=hidden" WITH_VISIBILITY_HIDDEN)
endif(CMAKE_COMPILER_IS_GNUC)
# HEADER FILES
check_include_file(pty.h HAVE_PTY_H)