Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Hönig
waLBerla
Commits
80e5504c
Commit
80e5504c
authored
Jun 30, 2021
by
Michael Kuron
Committed by
Markus Holzer
Jun 30, 2021
Browse files
Use OpenMP include path
parent
99406c6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
80e5504c
...
...
@@ -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
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment