Warn if OpenMP is disabled

This commit is contained in:
Sebastian Messmer 2018-05-21 00:27:49 -07:00
parent 9ef3e5ce63
commit 493f1bbc1c
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ if(NOT DISABLE_OPENMP)
message(FATAL_ERROR "Did not find OpenMP. Build with -DDISABLE_OPENMP=ON if you want to allow this and are willing to take the performance hit.")
endif(OPENMP_FOUND)
endif()
else(NOT DISABLE_OPENMP)
message(WARNING "OpenMP is disabled. This can cause degraded performance.")
endif(NOT DISABLE_OPENMP)