diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake index 7936244f..a87f8519 100644 --- a/cmake/compiler.cmake +++ b/cmake/compiler.cmake @@ -214,14 +214,6 @@ else() check_compiler_flag("-Ominimal" CC_HAS_OMINIMAL) check_compiler_flag("-ffunction-sections -fdata-sections" CC_HAS_SECTIONS) check_compiler_flag("-ffast-math" CC_HAS_FASTMATH) - - # Check for an omp support - set(CMAKE_REQUIRED_FLAGS "-fopenmp -Werror") - check_cxx_source_compiles("int main(void) { - #pragma omp parallel - return 0; - }" HAVE_OPENMP) - set(CMAKE_REQUIRED_FLAGS "") endif() # Check for LTO support by GCC @@ -534,10 +526,6 @@ macro(setup_compile_flags) endif() endif() - if(HAVE_OPENMP) - add_compile_flags("C;CXX" "-fopenmp") - endif() - if (ENABLE_ASAN) add_compile_flags("C;CXX" -fsanitize=address) endif()