mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
Only check sentinel-data if testing is enabled
If testing is not enabled, then we don't need the files in data.
This commit is contained in:
parent
9ad4ad7214
commit
e6f86c2adb
@ -161,12 +161,14 @@ include(VTKmCompilerFlags)
|
||||
#-----------------------------------------------------------------------------
|
||||
# We need to check and see if git lfs is installed so that test data will
|
||||
# be available for use
|
||||
file(STRINGS "${VTKm_SOURCE_DIR}/data/data/sentinel-data" sentinel_data LIMIT_COUNT 1)
|
||||
if (NOT sentinel_data STREQUAL "-- DO NOT MODIFY THIS LINE --")
|
||||
message(WARNING
|
||||
"Testing is enabled, but the data is not available. Use git lfs in order "
|
||||
" to obtain the testing data.")
|
||||
set(VTKm_ENABLE_TESTING off)
|
||||
if (VTKm_ENABLE_TESTING)
|
||||
file(STRINGS "${VTKm_SOURCE_DIR}/data/data/sentinel-data" sentinel_data LIMIT_COUNT 1)
|
||||
if (NOT sentinel_data STREQUAL "-- DO NOT MODIFY THIS LINE --")
|
||||
message(WARNING
|
||||
"Testing is enabled, but the data is not available. Use git lfs in order "
|
||||
"to obtain the testing data.")
|
||||
set(VTKm_ENABLE_TESTING off)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# We include the wrappers unconditionally as VTK-m expects the function to
|
||||
|
Loading…
Reference in New Issue
Block a user