Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Oct 12, 2023
1 parent 4849b89 commit fad4263
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/subdir.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fad4263

Please sign in to comment.