From 06ee93c6b1d418e39b089ae17a73e6ef018c21cf Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sun, 31 Oct 2021 10:52:40 +0800 Subject: [PATCH] Disable Python tests if the option enable_test is false. --- kaldifeat/python/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kaldifeat/python/CMakeLists.txt b/kaldifeat/python/CMakeLists.txt index 60d6382..6124aca 100644 --- a/kaldifeat/python/CMakeLists.txt +++ b/kaldifeat/python/CMakeLists.txt @@ -1,2 +1,5 @@ add_subdirectory(csrc) -add_subdirectory(tests) + +if(kaldifeat_BUILD_TESTS) + add_subdirectory(tests) +endif()