zephyr/cmake
Torsten Rasmussen 5c10eafb2b cmake: improved handling of CONF_FILE cached variable
Fixes: #28134

Minor fix for correctly testing if CONF_FILE variable is defined, and
if it is defined, then a current scope variable will be set with same
name. For a variable that is already present in current scope this has
no effect, but a cached variable (such as one provided with -DCONF_FILE)
will now have both a current scope and cached definition.
This ensures that current scope CONF_FILE will continue to be defined
even when the cached variable is cleared later.

Clearing of the cached variable ensures correct detection if user later
re-invokes CMake with a new -DCONF_FILE value.

The cached version is cleared later in favor of the CACHED_CONF_FILE
that is used between multiple CMake invocations.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2020-09-08 14:01:54 +02:00
..
app cmake: improved handling of CONF_FILE cached variable 2020-09-08 14:01:54 +02:00
bintools cmake: mwdt bintools adopted to new toolchain abstraction 2020-09-05 10:22:56 -05:00
compiler cmake: c++ compiler flag exclusion, -Werror=implicit-int 2020-09-07 17:22:37 +02:00
emu boards: arc: nsim: add a new board nsim_em7d_v22 2020-09-03 21:47:51 +02:00
flash cmake: flash signed binaries for mcuboot 2020-09-03 16:49:09 -05:00
ide
linker cmake: MWDT linker command list fix. 2020-09-05 10:22:56 -05:00
makefile_exports
reports
toolchain cmake: add metaware toolchain support in build system 2020-09-05 10:22:56 -05:00
usage
util
boards.cmake
ccache.cmake
cfb.cmake
dts.cmake cmake: allow to specify compliler for DTS preprocessing 2020-09-05 10:22:56 -05:00
extensions.cmake cmake: get Zephyr settings for language extension 2020-09-04 20:36:59 +02:00
extra_flags.cmake
gcc-m-cpu.cmake
generic_toolchain.cmake
git.cmake
hex.cmake
host-tools.cmake
kconfig.cmake
kobj.cmake
mcuboot.cmake cmake: mcuboot: confirmed images needs to be padded 2020-09-04 12:00:04 +02:00
pristine.cmake
python.cmake
target_toolchain_flags.cmake cmake: toolchain: Toolchain abstraction templates 2020-09-04 20:36:59 +02:00
target_toolchain.cmake cmake: toolchain: Toolchain abstraction templates 2020-09-04 20:36:59 +02:00
version.cmake
west.cmake cmake: add WEST to cached variable 2020-09-03 17:32:48 -04:00
zephyr_module.cmake