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
6cc7ccd8
Commit
6cc7ccd8
authored
7 years ago
by
Atkins, Charles Vernon
Browse files
Options
Downloads
Patches
Plain Diff
Use consistent names for build options
parent
3f98f3fe
No related branches found
No related tags found
1 merge request
!204
Update build docs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+23
-10
23 additions, 10 deletions
CMakeLists.txt
with
23 additions
and
10 deletions
CMakeLists.txt
+
23
−
10
View file @
6cc7ccd8
...
...
@@ -57,14 +57,21 @@ include(CMakeDependentOption)
# Setup shared library / -fPIC stuff
get_property
(
SHARED_LIBS_SUPPORTED GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS
)
option
(
BUILD_SHARED_LIBS
"Build shared libraries (so/dylib/dll)."
${
SHARED_LIBS_SUPPORTED
}
)
if
(
DEFINED BUILD_SHARED_LIBS
)
set
(
ADIOS2_BUILD_SHARED_LIBS_DEFAULT
${
BUILD_SHARED_LIBS
}
)
elseif
(
DEFINED ADIOS2_BUILD_SHARED_LIBS
)
set
(
ADIOS2_BUILD_SHARED_LIBS_DEFAULT
${
ADIOS2_BUILD_SHARED_LIBS
}
)
else
()
set
(
ADIOS2_BUILD_SHARED_LIBS_DEFAULT
${
SHARED_LIBS_SUPPORTED
}
)
endif
()
unset
(
BUILD_SHARED_LIBS
)
option
(
ADIOS2_BUILD_SHARED_LIBS
"Build shared libraries (so/dylib/dll)."
${
ADIOS2_BUILD_SHARED_LIBS
}
)
set
(
BUILD_SHARED_LIBS
${
ADIOS2_BUILD_SHARED_LIBS
}
)
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
)
set
(
BUILD_SHARED_LIBS OFF
)
endif
()
cmake_dependent_option
(
ADIOS2_ENABLE_PIC
...
...
@@ -80,7 +87,7 @@ adios_option(MPI "Enable support for MPI" AUTO)
adios_option
(
DataMan
"Enable support for DataMan"
AUTO
)
adios_option
(
ZeroMQ
"Enable support for ZeroMQ"
AUTO
)
adios_option
(
HDF5
"Enable support for the HDF5 engine"
AUTO
)
adios_option
(
ADIOS1
"Enable support for the ADIOS 1 engine"
AUTO
)
adios_option
(
ADIOS1
"Enable support for the ADIOS 1
.x
engine"
AUTO
)
adios_option
(
Python
"Enable support for Python bindings"
AUTO
)
adios_option
(
SysVShMem
"Enable support for SysV Shared Memory IPC on *NIX"
AUTO
)
include
(
${
ADIOS2_SOURCE_DIR
}
/cmake/DetectOptions.cmake
)
...
...
@@ -98,10 +105,8 @@ install(FILES ${ADIOS2_BINARY_DIR}/source/adios2/ADIOSConfig.h
#------------------------------------------------------------------------------#
# Third party libraries
#------------------------------------------------------------------------------#
option
(
ADIOS2_BUILD_TESTING
"Build ADIOS tests"
ON
)
set
(
BUILD_TESTING
${
ADIOS2_BUILD_TESTING
}
)
mark_as_advanced
(
BUILD_TESTING
)
include
(
CTest
)
mark_as_advanced
(
BUILD_TESTING
)
add_subdirectory
(
thirdparty
)
#------------------------------------------------------------------------------#
...
...
@@ -117,7 +122,7 @@ add_subdirectory(bindings)
#------------------------------------------------------------------------------#
# Examples
#------------------------------------------------------------------------------#
option
(
ADIOS2_BUILD_EXAMPLES
"Build ADIOS examples"
ON
)
option
(
ADIOS2_BUILD_EXAMPLES
"Build ADIOS
2
examples"
ON
)
if
(
ADIOS2_BUILD_EXAMPLES
)
add_subdirectory
(
examples
)
endif
()
...
...
@@ -125,7 +130,15 @@ endif()
#------------------------------------------------------------------------------#
# Testing
#------------------------------------------------------------------------------#
# We have to wait until after the library is defined to enable testing
if
(
DEFINED BUILD_TESTING
)
set
(
ADIOS2_BUILD_TESTING_DEFAULT
${
BUILD_TESTING
}
)
else
()
set
(
ADIOS2_BUILD_TESTING_DEFAULT ON
)
endif
()
unset
(
BUILD_TESTING
)
option
(
ADIOS2_BUILD_TESTING
"Build the ADIOS2 testing tree"
${
ADIOS2_BUILD_TESTING_DEFAULT
}
)
include
(
CTest
)
set
(
BUILD_TESTING
${
ADIOS2_BUILD_TESTING
}
)
if
(
BUILD_TESTING
)
enable_testing
()
add_subdirectory
(
testing
)
...
...
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