diff --git a/cmake/sdks.cmake b/cmake/sdks.cmake index 1b1ada7fc02..75283cdd1b6 100644 --- a/cmake/sdks.cmake +++ b/cmake/sdks.cmake @@ -191,6 +191,11 @@ if(BUILD_ONLY) endforeach() endif() +if (BUILD_BENCHMARKS) + LIST(APPEND SDK_BUILD_LIST "s3;s3-crt;monitoring;core") + add_subdirectory(tests/benchmark) +endif () + LIST(REMOVE_DUPLICATES SDK_BUILD_LIST) LIST(REMOVE_DUPLICATES SDK_DEPENDENCY_BUILD_LIST) @@ -265,10 +270,6 @@ function(add_sdks) endif() endif() - if (BUILD_BENCHMARKS) - add_subdirectory(tests/benchmark) - endif () - # the catch-all config needs to list all the targets in a dependency-sorted order include(dependencies) sort_links(EXPORTS)