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)