summaryrefslogtreecommitdiff
path: root/libs/libmdbx/src/cmake
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-02-21 12:29:17 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-02-21 12:29:17 +0300
commit45b1e1555bd76a8cad24c854a3c705c8cf1f356a (patch)
treeb749144bc86c7f8265a1decbefc12d60520c3219 /libs/libmdbx/src/cmake
parent582648f317fe46d07e860c0db3b91ae96fea9292 (diff)
fixes #2226 (Merge with latest libmdbx)
Diffstat (limited to 'libs/libmdbx/src/cmake')
-rw-r--r--libs/libmdbx/src/cmake/compiler.cmake14
1 files changed, 1 insertions, 13 deletions
diff --git a/libs/libmdbx/src/cmake/compiler.cmake b/libs/libmdbx/src/cmake/compiler.cmake
index 7936244f69..93c2c9f18b 100644
--- a/libs/libmdbx/src/cmake/compiler.cmake
+++ b/libs/libmdbx/src/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
@@ -367,7 +359,7 @@ if(CMAKE_COMPILER_IS_CLANG)
set(CMAKE_CLANG_NM ${CMAKE_NM})
endif()
if (NOT CMAKE_CLANG_RANLIB)
- set(CMAKE_CLANG_RANLIB ${CMAKE_RANLIB })
+ set(CMAKE_CLANG_RANLIB ${CMAKE_RANLIB})
endif()
message(STATUS "Assume Link-Time Optimization by CLANG/LLVM is available via ${CMAKE_TOOLCHAIN_FILE}")
else()
@@ -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()