From 3bff00b236a0b1a92379770eed66178e23810226 Mon Sep 17 00:00:00 2001 From: Michael Kuron <mkuron@icp.uni-stuttgart.de> Date: Tue, 28 Mar 2017 17:00:03 +0200 Subject: [PATCH] Only use -qopenmp on Intel 17 and higher as it is broken in 15 and 16. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0052b954..946cd5e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -961,7 +961,7 @@ option ( WALBERLA_THREAD_SAFE_LOGGING "Enables/Disables thread-safe logging" ON if ( WALBERLA_BUILD_WITH_OPENMP ) if ( WALBERLA_CXX_COMPILER_IS_INTEL ) - if( CMAKE_CXX_COMPILER_VERSION VERSION_LESS "15.0" ) + if( CMAKE_CXX_COMPILER_VERSION VERSION_LESS "17.0" ) add_flag ( CMAKE_C_FLAGS "-openmp" ) add_flag ( CMAKE_CXX_FLAGS "-openmp" ) else() -- GitLab