cmake: do not download submodules when BUILD_UNIT_TESTS

Faster CI.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-09-16 23:35:32 +00:00 committed by Liam Girdwood
parent ed5d2feaf6
commit fd1f631352
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if(GIT_FOUND AND EXISTS "${SOF_ROOT_SOURCE_DIRECTORY}/.git")
"There are submodule changes, check git status and git diff\n${stdout}")
endif()
else()
elseif(NOT BUILD_UNIT_TESTS)
# Automated initialization for convenience. You can defeat it by
# manually initializing rimage and _not_ some other
# submodule. In that case you get the warning above.