Settings a CMAKE CACHE variable make the first definition
to be not overwritten by a next assignement. Then a cli
variable is then possible more without force.
Change-Id: Iaad2ffa9d51cd2c77c51e94533979d3ee3f9dd32
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
# Compilation Mode (DEBUG, RELEASE)
# ----------------------------------
-set(CMAKE_BUILD_TYPE "DEBUG")
+set(CMAKE_BUILD_TYPE "DEBUG" CACHE STRING "Default Build variant chosen. (Overwritten by cli if given)")
# Kernel selection if needed. You can choose between a
# mandatory version to impose a minimal version.