From 8a6de15346ce5bebd67e92f33f2d3ddd70e82c42 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Mon, 17 Feb 2020 22:45:17 +0300 Subject: [PATCH] mdbx-cmake: drop openmp detection and flags. Change-Id: Iead999c356f683df36183df729dbc0a94e32c420 --- cmake/compiler.cmake | 12 ------------ 1 file changed, 12 deletions(-) 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()