From fdc92b136f52d1c1e8a8cf0bef9a0311e1461e7a Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 12 Jun 2020 12:05:27 +0300 Subject: [PATCH] mdbx-cmake: avoid using check_cxx_source_compiles(). More for https://github.com/erthink/libmdbx/issues/111 Change-Id: Icbe1fb3c4ed8e22da7fa7e95d2c8f2c302e77d82 --- cmake/compiler.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake index 0a4ca9b9..7d81b1a6 100644 --- a/cmake/compiler.cmake +++ b/cmake/compiler.cmake @@ -228,7 +228,7 @@ else() # Check for an omp support set(CMAKE_REQUIRED_FLAGS "-fopenmp -Werror") - check_cxx_source_compiles("int main(void) { + check_c_source_compiles("int main(void) { #pragma omp parallel return 0; }" HAVE_OPENMP)