Be able to overwrite BUILD_TYPE using CLI 85/15085/3 sandbox/sdesneux/4a_master
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 6 Jul 2018 14:10:33 +0000 (16:10 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 10 Jul 2018 14:01:48 +0000 (16:01 +0200)
commit332f377e84a673cdcfe52ce71c932f39c4b48022
tree6a7cf77ea05abd7c23b4a6e1db5bf011edbf38a4
parent1ec753146fa7b2fe7187765fd51e167db4bee3c9
Be able to overwrite BUILD_TYPE using CLI

If not defined using CLI CMake set the variable CMAKE_BUILD_TYPE
to an empty value. As it is a CACHE variable it can't be
overwritten except if you force it. This fix setting this variable
the first defined value wins:

CLI > Config.cmake > Default value (DEBUG)

Change-Id: I7ff3c9063febf71b898fa7f19058ce2fb25fae01
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
cmake/cmake.d/01-build_options.cmake
samples.d/config.cmake.sample