diff --git a/AMDiS/CMakeLists.txt b/AMDiS/CMakeLists.txt index af9f197a14da69471080dfa7d09b9c36c861729f..125339dac9d75e9d11cdabca8c0bd4516a39af1f 100644 --- a/AMDiS/CMakeLists.txt +++ b/AMDiS/CMakeLists.txt @@ -454,7 +454,11 @@ endif(ENABLE_EXTENSIONS) if(ENABLE_OPENMP) - list(APPEND COMPILEFLAGS "-fopenmp") + if(CMAKE_CXX_COMPILER MATCHES ".*icpc") + list(APPEND COMPILEFLAGS "-openmp") + else() + list(APPEND COMPILEFLAGS "-fopenmp") + endif() endif(ENABLE_OPENMP) SET(COMPOSITE_SOURCE_DIR ${SOURCE_DIR}/compositeFEM)