Commit d37844f2 authored by Tiago Peixoto's avatar Tiago Peixoto

configure.ac: fix OpenMP flags with clang

parent 8a90c677
Pipeline #254 passed with stage
in 304 minutes and 48 seconds
......@@ -92,6 +92,10 @@ AC_ARG_ENABLE([openmp], [AS_HELP_STRING([--disable-openmp],[disable openmp [defa
[OPENMP_CXXFLAGS="-Wno-unknown-pragmas"])])
if test ${USING_OPENMP} = yes; then
AC_DEFINE([USING_OPENMP], 1, [using openmp])
dnl clang is retarded
if test "$(${CXX} --version | grep clang)x" != "x"; then
[OPENMP_CXXFLAGS="${OPENMP_CXXFLAGS} -lomp"]
fi
fi
[CXXFLAGS="${OPENMP_CXXFLAGS} ${CXXFLAGS}"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment