Skip to content
Snippets Groups Projects
Commit 44f67614 authored by Jan Möbius's avatar Jan Möbius
Browse files

Cleanup OpenMP detection

parent d0220925
No related branches found
No related tags found
No related merge requests found
Pipeline #20165 failed
......@@ -117,10 +117,7 @@ endmacro ()
# test for OpenMP
macro (vci_openmp)
if (NOT OPENMP_NOTFOUND)
# Set off OpenMP on Darwin architectures
# since it causes crashes sometimes
# if(NOT APPLE)
if (NOT OPENMP_FOUND)
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
......@@ -130,13 +127,11 @@ macro (vci_openmp)
# export includes and libraries for usage within openflipper plugins
set(OPENMP_INCLUDE_DIRS ${OpenMP_CXX_INCLUDE_DIR})
set(OPENMP_LIBRARIES ${OpenMP_libomp_LIBRARY})
# 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 (vci_append_files ret ext)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment