Ensure OpenMP is imported

This commit is contained in:
Yohann Vautrin 2024-04-23 18:03:24 -04:00
parent 88b9a2f42f
commit e40cdbc0f9

@ -105,6 +105,14 @@ if (VTKm_ENABLE_TBB)
endif()
endif()
if (VTKm_ENABLE_OPENMP)
find_dependency(OpenMP)
if (NOT OpenMP_FOUND)
set(VTKm_FOUND 0)
list(APPEND VTKm_NOT_FOUND_REASON "OpenMP not found: ${OpenMP_NOT_FOUND_MESSAGE}")
endif()
endif()
if (VTKm_ENABLE_ANARI)
find_dependency(anari)
if (NOT anari_FOUND)