diff options
-rw-r--r-- | grc/scripts/freedesktop/CMakeLists.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/grc/scripts/freedesktop/CMakeLists.txt b/grc/scripts/freedesktop/CMakeLists.txt index 6941d6e1b8..2528d1dd8b 100644 --- a/grc/scripts/freedesktop/CMakeLists.txt +++ b/grc/scripts/freedesktop/CMakeLists.txt @@ -59,8 +59,9 @@ if(UNIX AND HAVE_XDG_UTILS) endif(ENABLE_POSTINSTALL) endif(UNIX AND HAVE_XDG_UTILS) -find_program(APPSTREAMCLI appstreamcli) - -if(UNIX AND APPSTREAMCLI) - GR_ADD_TEST(metainfo_test "${APPSTREAMCLI}" validate "${CMAKE_CURRENT_SOURCE_DIR}/org.gnuradio.grc.metainfo.xml") -endif() +if(UNIX AND ENABLE_TESTING) + find_program(APPSTREAMCLI appstreamcli) + if(APPSTREAMCLI) + GR_ADD_TEST(metainfo_test "${APPSTREAMCLI}" validate "${CMAKE_CURRENT_SOURCE_DIR}/org.gnuradio.grc.metainfo.xml") + endif(APPSTREAMCLI) +endif(UNIX AND ENABLE_TESTING) |