VTK_USE_GCC_VISIBILITY = off
Last active
December 18, 2015 05:49
-
-
Save ihnorton/5735053 to your computer and use it in GitHub Desktop.
VTK5.10.1 build patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/CMakeLists.txt b/CMakeLists.txt | |
| index 26df3a0..130bd2f 100644 | |
| --- a/CMakeLists.txt | |
| +++ b/CMakeLists.txt | |
| @@ -14,6 +14,8 @@ ENDFOREACH() | |
| PROJECT(VTK) | |
| +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fkeep-inline-functions") | |
| + | |
| # Objective C compile flags, future CMake versions might make this obsolete | |
| IF(APPLE) | |
| STRING(REGEX REPLACE "^.*MacOSX([0-9]*\\.[0-9]*)\\.sdk$" "\\1" | |
| diff --git a/Utilities/CMakeLists.txt b/Utilities/CMakeLists.txt | |
| index 107539c..056c630 100644 | |
| --- a/Utilities/CMakeLists.txt | |
| +++ b/Utilities/CMakeLists.txt | |
| @@ -1,3 +1,6 @@ | |
| +SET(HOLD_CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") | |
| +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-keep-inline-functions") | |
| + | |
| # Build kwsys | |
| ADD_SUBDIRECTORY(kwsys) | |
| IF(NOT VTK_INSTALL_NO_LIBRARIES) | |
| @@ -145,3 +148,5 @@ IF(NOT VTK_COMPILER_NO_SGI_STDARG_WORKAROUND) | |
| COMPONENT Development) | |
| ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT) | |
| ENDIF(NOT VTK_COMPILER_NO_SGI_STDARG_WORKAROUND) | |
| + | |
| +SET(CMAKE_CXX_FLAGS "${HOLD_CMAKE_CXX_FLAGS}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment