From d9b7e4cb7a40fe171aea1411ce8cfabc25036bb3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 12 Aug 2009 14:05:17 +0200 Subject: Fix compilation with visibility flags with mingw. Thanks to Patrick Spendrin. --- ConfigureChecks.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index e3f53ea2..3a98758e 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -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) -- cgit v1.2.3