From f67b0d5b833696d868576ef7d824b45ceb111b45 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Thu, 29 Dec 2022 01:24:32 +0400 Subject: [PATCH] Don't add samples subdirectory when both samples and tests are disabled (#14817) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bee8333fdbb..fe8dc1de1db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,10 @@ endif() add_subdirectory(thirdparty) add_subdirectory(src) -add_subdirectory(samples) + +if(ENABLE_SAMPLES OR ENABLE_TESTS OR ENABLE_COMPILE_TOOL) + add_subdirectory(samples) +endif() # Enable interpreter backend for tests if (ENABLE_TESTS OR ENABLE_TEMPLATE)