Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADIOS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Podhorszki, Norbert
ADIOS2
Commits
877087db
Commit
877087db
authored
7 years ago
by
Atkins, Charles Vernon
Browse files
Options
Downloads
Patches
Plain Diff
Fix how shared / static option is handled
parent
64d13b27
No related branches found
No related tags found
1 merge request
!199
Add cmake package configs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+10
-5
10 additions, 5 deletions
CMakeLists.txt
with
10 additions
and
5 deletions
CMakeLists.txt
+
10
−
5
View file @
877087db
...
...
@@ -55,14 +55,19 @@ include(CMakeDependentOption)
# Setup shared library / -fPIC stuff
get_property
(
SHARED_LIBS_SUPPORTED GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS
)
cmake_dependent_option
(
ADIOS2_BUILD_SHARED_LIBS
"Whether or not to build shared libraries"
ON
"SHARED_LIBS_SUPPORTED"
OFF
)
option
(
BUILD_SHARED_LIBS
"Build shared libraries (so/dylib/dll)."
${
SHARED_LIBS_SUPPORTED
}
)
if
(
NOT SHARED_LIBS_SUPPORTED
)
if
(
BUILD_SHARED_LIBS
)
message
(
WARNING
"A shared library build was requested but is not supported on this platform / compiler. Unexpected build results will likely occur"
)
endif
()
set
(
BUILD_SHARED_LIBS OFF CACHE BOOL
"Build shared libraries (so/dylib/dll)."
FORCE
)
endif
()
cmake_dependent_option
(
ADIOS2_ENABLE_PIC
"Build with Position Independent Code"
ON
"SHARED_LIBS_SUPPORTED"
OFF
)
set
(
BUILD_SHARED_LIBS
${
ADIOS2_BUILD_SHARED_LIBS
}
)
if
(
ADIOS2_ENABLE_PIC
)
set
(
CMAKE_POSITION_INDEPENDENT_CODE ON
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
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