diff --git a/tools/cmake/project.cmake b/tools/cmake/project.cmake index cfb95b95ce..a8f3cea063 100644 --- a/tools/cmake/project.cmake +++ b/tools/cmake/project.cmake @@ -504,7 +504,7 @@ function(__project_init components_var test_components_var) message(WARNING "The MINIMAL_BUILD property is disregarded because the COMPONENTS variable is defined.") set(minimal_build OFF) else() - set(COMPONENTS main) + set(COMPONENTS main ${TEST_COMPONENTS}) set(minimal_build ON) endif() else()