Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mathieu Westphal (Kitware)
VTK
Commits
283b0b26
Commit
283b0b26
authored
8 years ago
by
Robert Maynard
Browse files
Options
Downloads
Patches
Plain Diff
VTK_USE_GCC_VISIBILITY has been replaced with CXX_VISIBILITY_PRESET property
parent
7fe30aa1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/vtkCompilerExtras.cmake
+0
-26
0 additions, 26 deletions
CMake/vtkCompilerExtras.cmake
with
0 additions
and
26 deletions
CMake/vtkCompilerExtras.cmake
+
0
−
26
View file @
283b0b26
...
...
@@ -27,32 +27,6 @@ if(CMAKE_COMPILER_IS_GNUCXX)
"
${
VTK_EXTRA_SHARED_LINKER_FLAGS
}
-Wl,--no-undefined -lc
${
CMAKE_SHARED_LINKER_FLAGS
}
"
)
endif
()
# Now check if we can use visibility to selectively export symbols
execute_process
(
COMMAND
${
CMAKE_C_COMPILER
}
--version
OUTPUT_VARIABLE _gcc_version_info
ERROR_VARIABLE _gcc_version_info
)
string
(
REGEX MATCH
"[3-9]
\\
.[0-9]
\\
.[0-9]*"
_gcc_version
"
${
_gcc_version_info
}
"
)
if
(
NOT _gcc_version
)
string
(
REGEX REPLACE
".*
\\
(GCC
\\
).*([34]
\\
.[0-9]).*"
"
\\
1.0"
_gcc_version
"
${
_gcc_version_info
}
"
)
endif
()
# GCC visibility support, on by default and in testing.
check_cxx_compiler_flag
(
-fvisibility=hidden HAVE_GCC_VISIBILITY
)
option
(
VTK_USE_GCC_VISIBILITY
"Use GCC visibility support if available."
OFF
)
mark_as_advanced
(
VTK_USE_GCC_VISIBILITY
)
if
(
_gcc_version VERSION_GREATER 4.2.0 AND BUILD_SHARED_LIBS
AND HAVE_GCC_VISIBILITY AND VTK_USE_GCC_VISIBILITY
AND NOT MINGW AND NOT CYGWIN
)
# Should only be set if GCC is newer than 4.2.0
set
(
VTK_ABI_CXX_FLAGS
"-fvisibility=hidden -fvisibility-inlines-hidden"
)
else
()
set
(
VTK_ABI_CXX_FLAGS
""
)
endif
()
# Set up the debug CXX_FLAGS for extra warnings
option
(
VTK_EXTRA_COMPILER_WARNINGS
"Add compiler flags to do stricter checking when building debug."
OFF
)
...
...
This diff is collapsed.
Click to expand it.
Ben Boeckel
@ben.boeckel
Mentioned in commit
ed646d00
·
8 years ago
Mentioned in commit
ed646d00
Mentioned in commit ed646d00e1eef2b260c7c49c0ea5d8a578d1ffaa
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment