GRIB-1000: Cannot build with tests disabled

This commit is contained in:
Shahram Najm 2016-06-21 16:24:37 +01:00
parent 9b2f4ac26e
commit 271fe4a6bb
5 changed files with 18 additions and 6 deletions

View File

@ -18,7 +18,11 @@ endif()
ecbuild_get_test_multidata( TARGET eccodes_download_gribs ecbuild_get_test_multidata( TARGET eccodes_download_gribs
NOCHECK NOCHECK
NAMES ${files_to_download} ) NAMES ${files_to_download} )
set_property( TEST eccodes_download_gribs APPEND PROPERTY LABELS download_data )
if( ENABLE_TESTS )
set_property( TEST eccodes_download_gribs APPEND PROPERTY LABELS download_data )
endif()
# Copy other files - e.g. reference data, text files etc from the source data dir # Copy other files - e.g. reference data, text files etc from the source data dir
LIST(APPEND other_files LIST(APPEND other_files

View File

@ -19,7 +19,9 @@ ecbuild_get_test_multidata(
NOCHECK NOCHECK
NAMES ${bufr_files_to_download} ${bufr_refs_to_download} NAMES ${bufr_files_to_download} ${bufr_refs_to_download}
) )
set_property( TEST eccodes_download_bufrs APPEND PROPERTY LABELS download_data ) if( ENABLE_TESTS )
set_property( TEST eccodes_download_bufrs APPEND PROPERTY LABELS download_data )
endif()
# Copy other files - e.g. text files etc from the source data/bufr dir # Copy other files - e.g. text files etc from the source data/bufr dir
LIST(APPEND other_files LIST(APPEND other_files

View File

@ -14,7 +14,10 @@ ecbuild_get_test_multidata(
NOCHECK NOCHECK
NAMES ${gts_files_to_download} ${gts_refs_to_download} NAMES ${gts_files_to_download} ${gts_refs_to_download}
) )
set_property( TEST eccodes_download_gts APPEND PROPERTY LABELS download_data ) if( ENABLE_TESTS )
set_property( TEST eccodes_download_gts APPEND PROPERTY LABELS download_data )
endif()
# Copy other files - e.g. text files etc from the source data/gts dir # Copy other files - e.g. text files etc from the source data/gts dir
LIST(APPEND other_files LIST(APPEND other_files

View File

@ -17,8 +17,10 @@ ecbuild_get_test_multidata(
NOCHECK NOCHECK
NAMES ${metar_files_to_download} ${metar_refs_to_download} NAMES ${metar_files_to_download} ${metar_refs_to_download}
) )
set_property( TEST eccodes_download_metars APPEND PROPERTY LABELS download_data )
if( ENABLE_TESTS )
set_property( TEST eccodes_download_metars APPEND PROPERTY LABELS download_data )
endif()
# Copy other files - e.g. text files etc from the source data/metar dir # Copy other files - e.g. text files etc from the source data/metar dir
LIST(APPEND other_files LIST(APPEND other_files

View File

@ -8,5 +8,6 @@ string(REGEX REPLACE "\n" ";" tigge_files_to_download "${tigge_files_to_download
ecbuild_get_test_multidata( TARGET eccodes_download_tigge_gribs ecbuild_get_test_multidata( TARGET eccodes_download_tigge_gribs
NOCHECK NOCHECK
NAMES ${tigge_files_to_download} ) NAMES ${tigge_files_to_download} )
set_property( TEST eccodes_download_tigge_gribs APPEND PROPERTY LABELS download_data ) if( ENABLE_TESTS )
set_property( TEST eccodes_download_tigge_gribs APPEND PROPERTY LABELS download_data )
endif()