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
cmake
cmake-library
Commits
fe97472b
Commit
fe97472b
authored
Dec 02, 2020
by
Max Lyon
Browse files
add acg_openmp makro
parent
3e93bee7
Pipeline
#16055
failed with stage
in 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VCI/ACGCommon.cmake
View file @
fe97472b
...
...
@@ -153,6 +153,24 @@ macro (acg_set var value)
set
(
${
var
}
${
value
}
CACHE INTERNAL
""
)
endmacro
()
# test for OpenMP
macro
(
acg_openmp
)
if
(
NOT OPENMP_NOTFOUND
)
# Set off OpenMP on Darwin architectures
# since it causes crashes sometimes
# if(NOT APPLE)
find_package
(
OpenMP
)
if
(
OPENMP_FOUND
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
OpenMP_CXX_FLAGS
}
"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
OpenMP_C_FLAGS
}
"
)
add_definitions
(
-DUSE_OPENMP
)
# else ()
# set (OPENMP_NOTFOUND 1)
# endif ()
endif
()
endif
()
endmacro
()
# append all files with extension "ext" in the "dirs" directories to "ret"
# excludes all files starting with a '.' (dot)
macro
(
acg_append_files ret ext
)
...
...
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