Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
waLBerla
waLBerla
Commits
acd9a0bc
Commit
acd9a0bc
authored
Jun 30, 2021
by
Markus Holzer
Browse files
Merge branch 'mac-openmp' into 'master'
Use OpenMP include path See merge request
!469
parents
99406c6a
80e5504c
Pipeline
#33020
passed with stages
in 617 minutes and 9 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
acd9a0bc
...
...
@@ -1011,11 +1011,18 @@ endif()
option
(
WALBERLA_THREAD_SAFE_LOGGING
"Enables/Disables thread-safe logging"
ON
)
if
(
WALBERLA_BUILD_WITH_OPENMP
)
if
(
APPLE AND EXISTS /opt/local/lib/libomp AND EXISTS /opt/local/include/libomp
)
# find libomp from MacPorts
set
(
CMAKE_FRAMEWORK_PATH /opt/local/lib/libomp
)
set
(
CMAKE_INCLUDE_PATH /opt/local/include/libomp
)
endif
()
find_package
(
OpenMP
)
if
(
OpenMP_FOUND
)
add_flag
(
CMAKE_C_FLAGS
"
${
OpenMP_C_FLAGS
}
"
)
add_flag
(
CMAKE_CXX_FLAGS
"
${
OpenMP_CXX_FLAGS
}
"
)
list
(
APPEND SERVICE_LIBS
${
OpenMP_CXX_LIBRARIES
}
)
if
(
OpenMP_CXX_INCLUDE_DIRS
)
include_directories
(
${
OpenMP_CXX_INCLUDE_DIRS
}
)
endif
()
else
()
#workarounds
if
(
WALBERLA_CXX_COMPILER_IS_NEC
)
...
...
Write
Preview
Markdown
is supported
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