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
7600ad5f
Commit
7600ad5f
authored
12 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Boost with the ENABLE trick.
[[Imported from SVN: r6693]]
parent
9de2827d
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
+19
-0
19 additions, 0 deletions
cmake/modules/DuneBoost.cmake
with
19 additions
and
0 deletions
cmake/modules/DuneBoost.cmake
0 → 100644
+
19
−
0
View file @
7600ad5f
find_package
(
Boost
)
message
(
"Boost_LIBRARIES=
${
Boost_LIBRARIES
}
"
)
message
(
"Boost_INCLUDE_DIRS=
${
Boost_INCLUDE_DIRS
}
"
)
function
(
add_dune_boost_flags _targets
)
if
(
Boost_FOUND
)
include_directories
(
"
${
Boost_INCLUDE_DIRS
}
"
)
foreach
(
_target
${
_targets
}
)
target_link_libraries
(
${
_target
}
${
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
)
string
(
REPLACE
"_props-NOTFOUND"
""
_props
"
${
_props
}
"
)
SET_TARGET_PROPERTIES
(
${
_target
}
PROPERTIES COMPILE_FLAGS
"
${
_props
}
-DENABLE_BOOST=1"
)
endforeach
(
_target
)
endif
(
Boost_FOUND
)
endfunction
(
add_dune_boost_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