From 332f377e84a673cdcfe52ce71c932f39c4b48022 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 6 Jul 2018 16:10:33 +0200 Subject: 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 --- samples.d/config.cmake.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samples.d') diff --git a/samples.d/config.cmake.sample b/samples.d/config.cmake.sample index d7268cd..70715fc 100644 --- a/samples.d/config.cmake.sample +++ b/samples.d/config.cmake.sample @@ -41,7 +41,7 @@ set(PROJECT_APP_TEMPLATES_DIR "conf.d/app-templates") # Compilation Mode (DEBUG, RELEASE) # ---------------------------------- -#set(CMAKE_BUILD_TYPE "DEBUG") +#set(BUILD_TYPE "DEBUG") #set(USE_EFENCE 1) # Kernel selection if needed. You can choose between a -- cgit 1.2.3-korg