Skip to content

Commit

Permalink
COMP: Special case for MinGW and visibility.
Browse files Browse the repository at this point in the history
If using MinGW then visibility support should not be used if we also use
the conventional Windows declspec logic. Thanks to Sascha Zelzer for
pointing this out.
  • Loading branch information
cryos committed Aug 27, 2010
1 parent 9d2bb86 commit 0a5eb2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/vtkCompilerExtras.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
mark_as_advanced(VTK_USE_GCC_VISIBILITY)

if(${_gcc_version} VERSION_GREATER 4.2.0 AND HAVE_GCC_VISIBILITY
AND VTK_USE_GCC_VISIBILITY AND BUILD_SHARED_LIBS)
AND VTK_USE_GCC_VISIBILITY AND BUILD_SHARED_LIBS AND NOT MINGW)
# Should only be set if GCC is newer than 4.2.0
set(VTK_ABI_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden")
else()
Expand Down

0 comments on commit 0a5eb2e

Please sign in to comment.