Skip to content
Commit de53c0d2 authored by Torsten Rasmussen's avatar Torsten Rasmussen Committed by Carles Cufí
Browse files

sysbuild: cmake: fix sysbuild_cache_set() function



The sysbuild_cache_set() supports setting variables in a dedicated
sysbuild image cache. When appending to a list, the list is checked for
existance of the variable to avoid appending it again on reruns.

This was done be checking with `string(FIND ...)`, but that will also
return an index on a partial match.

A much safer approach is to use the `if(<val> IN_LIST <list>)` approach
to check for existance.

Signed-off-by: default avatarTorsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
parent 7fb75780
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment