mdbx-cmake: avoid using check_cxx_source_compiles().

More for https://github.com/erthink/libmdbx/issues/111

Change-Id: Icbe1fb3c4ed8e22da7fa7e95d2c8f2c302e77d82
This commit is contained in:
Leonid Yuriev 2020-06-12 12:05:27 +03:00
parent 753cd8fec1
commit fdc92b136f

View File

@ -228,7 +228,7 @@ else()
# Check for an omp support # Check for an omp support
set(CMAKE_REQUIRED_FLAGS "-fopenmp -Werror") set(CMAKE_REQUIRED_FLAGS "-fopenmp -Werror")
check_cxx_source_compiles("int main(void) { check_c_source_compiles("int main(void) {
#pragma omp parallel #pragma omp parallel
return 0; return 0;
}" HAVE_OPENMP) }" HAVE_OPENMP)