From 90f82455f329f9749aac63cca7bb5d717a81a65c Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sun, 31 Oct 2021 10:53:56 +0800 Subject: [PATCH] Disable Python tests if the option enable_test is false. (#14) --- 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()