cmake: fix defconfigs dependency

CMake regeneration condition should depend on directory to automatically
update when new defconfigs are added.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2020-04-03 12:51:26 +02:00 committed by Liam Girdwood
parent 3094f51aa5
commit 22e4e7bff6
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause
# Looks for defconfig files in arch directory
set(DEFCONFIGS_DIRECTORY "${PROJECT_SOURCE_DIR}/src/arch/${ARCH}/configs/*_defconfig")
file(GLOB DEFCONFIG_PATHS ${DEFCONFIGS_DIRECTORY})
set(DEFCONFIGS_DIRECTORY "${PROJECT_SOURCE_DIR}/src/arch/${ARCH}/configs")
file(GLOB DEFCONFIG_PATHS "${DEFCONFIGS_DIRECTORY}/*_defconfig")
# Adds dependency on defconfigs directory
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${DEFCONFIGS_DIRECTORY})