diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 392042e11..baef66d32 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -74,4 +74,6 @@ ecm_add_test(${sortfiltermodeltest_srcs} TEST_NAME plasma-sortfiltermodeltest LI #Add a test that i18n is not used directly in any import. # It should /always/ be i18nd find_program(SH bash) -add_test(i18ndcheck ${SH} ${CMAKE_CURRENT_SOURCE_DIR}/i18ndcheck.sh ${CMAKE_SOURCE_DIR}/src/declarativeimports) +if(SH) + add_test(i18ndcheck ${SH} ${CMAKE_CURRENT_SOURCE_DIR}/i18ndcheck.sh ${CMAKE_SOURCE_DIR}/src/declarativeimports) +endif()