From fad4263690150dc12f6a0c7e1d315255a672a3f3 Mon Sep 17 00:00:00 2001 From: "Zezheng.Li" Date: Thu, 12 Oct 2023 15:39:59 +0800 Subject: [PATCH] fix --- cmake/subdir.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/subdir.cmake b/cmake/subdir.cmake index 234a25fcb..527486465 100644 --- a/cmake/subdir.cmake +++ b/cmake/subdir.cmake @@ -27,13 +27,13 @@ foreach(child ${children}) get_filename_component(subdir_name ${child} NAME) string(TOUPPER ${subdir_name} subdir_name) if (BUILD_${subdir_name}) - if(BUILD_UNIT_TESTS AND EXISTS ${child}/examples) + if(BUILD_EXAMPLES AND EXISTS ${child}/examples) add_subdirectory(${child}/examples) endif() - if(BUILD_BENCHMARK AND EXISTS ${child}/tests) + if(BUILD_UNIT_TESTS AND EXISTS ${child}/tests) add_subdirectory(${child}/tests) endif() - if(BUILD_EXAMPLES AND EXISTS ${child}/benchmark) + if(BUILD_BENCHMARK AND EXISTS ${child}/benchmark) add_subdirectory(${child}/benchmark) endif() endif()