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)