diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 6a019b4a4..06162c044 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -18,7 +18,11 @@ endif() ecbuild_get_test_multidata( TARGET eccodes_download_gribs NOCHECK 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 LIST(APPEND other_files diff --git a/data/bufr/CMakeLists.txt b/data/bufr/CMakeLists.txt index 3ca254cbe..8f4818bec 100644 --- a/data/bufr/CMakeLists.txt +++ b/data/bufr/CMakeLists.txt @@ -19,7 +19,9 @@ ecbuild_get_test_multidata( NOCHECK 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 LIST(APPEND other_files diff --git a/data/gts/CMakeLists.txt b/data/gts/CMakeLists.txt index 6566884c0..cee7c74ec 100644 --- a/data/gts/CMakeLists.txt +++ b/data/gts/CMakeLists.txt @@ -14,7 +14,10 @@ ecbuild_get_test_multidata( NOCHECK 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 LIST(APPEND other_files diff --git a/data/metar/CMakeLists.txt b/data/metar/CMakeLists.txt index e292ac267..f1ab80808 100644 --- a/data/metar/CMakeLists.txt +++ b/data/metar/CMakeLists.txt @@ -17,8 +17,10 @@ ecbuild_get_test_multidata( NOCHECK 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 LIST(APPEND other_files diff --git a/data/tigge/CMakeLists.txt b/data/tigge/CMakeLists.txt index 522f3243b..adab34f6c 100644 --- a/data/tigge/CMakeLists.txt +++ b/data/tigge/CMakeLists.txt @@ -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 NOCHECK 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()