Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
4d4855f0
Commit
4d4855f0
authored
Oct 14, 2020
by
Praetorius, Simon
Browse files
update MTL cmake find module to support openMP
parent
dc6aa48e
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/modules/FindMTL.cmake
View file @
4d4855f0
...
...
@@ -27,7 +27,7 @@ find_path(MTL_INCLUDE_DIR boost/numeric/mtl/mtl.hpp
mtl mtl4
)
set
(
MTL_COMPILE_DEFINITIONS MTL_ASSERT_FOR_THROW
=1
)
set
(
MTL_COMPILE_DEFINITIONS
"
MTL_ASSERT_FOR_THROW
"
)
foreach
(
feature
"MOVE"
"AUTO"
"RANGEDFOR"
"INITLIST"
"STATICASSERT"
"DEFAULTIMPL"
)
list
(
APPEND MTL_COMPILE_DEFINITIONS MTL_WITH_
${
feature
}
)
endforeach
(
feature
)
...
...
@@ -56,6 +56,12 @@ if(MTL_FOUND AND NOT TARGET MTL::MTL)
target_link_libraries
(
MTL::MTL INTERFACE HYPRE::HYPRE
)
endif
()
find_package
(
OpenMP
)
if
(
OpenMP_CXX_FOUND
)
list
(
APPEND MTL_COMPILE_DEFINITIONS
"MTL_WITH_OPENMP"
)
target_link_libraries
(
MTL::MTL INTERFACE OpenMP::OpenMP_CXX
)
endif
()
set_target_properties
(
MTL::MTL PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES
"
${
MTL_INCLUDE_DIR
}
"
INTERFACE_COMPILE_DEFINITIONS
"
${
MTL_COMPILE_DEFINITIONS
}
"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment