Don't add samples subdirectory when both samples and tests are disabled (#14817) (#15122)

This commit is contained in:
Ilya Lavrenov 2023-01-16 10:50:17 +04:00 committed by GitHub
parent 43c8af2fce
commit ae537310dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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)