diff --git a/examples/soft_creatures_2d.cpp b/examples/soft_creatures_2d.cpp index bc1664b1..fd4dffa8 100644 --- a/examples/soft_creatures_2d.cpp +++ b/examples/soft_creatures_2d.cpp @@ -751,7 +751,9 @@ private: std::vector evaluated_creatures(population_.size()); +#ifdef _OPENMP #pragma omp parallel for +#endif for (int i = 0; i < population_.size(); ++i) { auto & creature = population_[i];