diff --git a/examples/make_lodsmry.cpp b/examples/make_lodsmry.cpp index a426e94be..1121aea59 100644 --- a/examples/make_lodsmry.cpp +++ b/examples/make_lodsmry.cpp @@ -20,10 +20,13 @@ #include #include -#include #include #include +#if HAVE_OPENMP +#include +#endif + #include #include #include @@ -64,6 +67,7 @@ int main(int argc, char **argv) { int argOffset = optind; +#if HAVE_OPENMP int available_threads = omp_get_max_threads(); if (max_threads < 0) @@ -75,6 +79,7 @@ int main(int argc, char **argv) { max_threads = argc-argOffset; omp_set_num_threads(max_threads); +#endif auto lap0 = std::chrono::system_clock::now();