Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Core Modules
dune-common
Commits
7505efeb
Commit
7505efeb
authored
11 years ago
by
Markus Blatt
Browse files
Options
Downloads
Plain Diff
Fix FS#1312, Merge branch 'feature/workaround-redhat-boost-problem' into releases/2.2-cmake
parents
70120311
ef2576e5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/modules/DuneBoost.cmake
+13
-3
13 additions, 3 deletions
cmake/modules/DuneBoost.cmake
with
13 additions
and
3 deletions
cmake/modules/DuneBoost.cmake
+
13
−
3
View file @
7505efeb
# Searches for boost and provides the following function:
#
# add_dune_boost_flags(targets)
# add_dune_boost_flags(targets [LINK_ALL_BOOST_LIBRARIES]
# LIBRARIES lib1 lib2 ...)
#
# Adds boost compiler flags and libraries, and activates
# Boost for the specified targets.
# Boost for the specified targets. Libraries can either be
# provided by listing them after the LIBRARIES keyword or one
# can request linking with all available boost libraries by
# passing the LINK_ALL_BOOST_LIBRARIES option to the function
# call.
find_package
(
Boost
)
set
(
HAVE_DUNE_BOOST
${
Boost_FOUND
}
)
function
(
add_dune_boost_flags _targets
)
cmake_parse_arguments
(
DUNE_BOOST LINK_ALL_BOOST_LIBRARIES
""
LIBRARIES
${
ARGN
}
)
if
(
Boost_FOUND
)
include_directories
(
"
${
Boost_INCLUDE_DIRS
}
"
)
foreach
(
_target
${
_targets
}
)
target_link_libraries
(
${
_target
}
${
Boost_LIBRARIES
}
)
if
(
DUNE_BOOST_LINK_ALL_BOOST_LIBRARIES
)
target_link_libraries
(
${
_target
}
"
${
DUNE_Boost_LIBRARIES
}
"
)
else
(
DUNE_BOOST_LINK_ALL_BOOST_LIBRARIES
)
target_link_libraries
(
${
_target
}
"
${
DUNE_BOOST_LIBRARIES
}
"
)
endif
(
DUNE_BOOST_LINK_ALL_BOOST_LIBRARIES
)
# The definitions are a hack as we do not seem to know which MPI implementation was
# found.
GET_TARGET_PROPERTY
(
_props
${
_target
}
COMPILE_FLAGS
)
...
...
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