Make Built type overwritten by cli possible. 83/15083/2
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 6 Jul 2018 14:08:48 +0000 (16:08 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 6 Jul 2018 14:39:22 +0000 (14:39 +0000)
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>
conf.d/cmake/config.cmake

index b7d68a3..1ebb2a4 100644 (file)
@@ -37,7 +37,7 @@ set(PROJECT_APP_TEMPLATES_DIR "conf.d/app-templates")
 
 # 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.