From: Romain Forlot Date: Fri, 6 Jul 2018 14:08:48 +0000 (+0200) Subject: Make Built type overwritten by cli possible. X-Git-Tag: flounder_5.99.2~6 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=0b188b21df19bac0cff339c738cd439e887436b8;p=apps%2Fagl-service-can-low-level.git Make Built type overwritten by cli possible. 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 --- diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index b7d68a39..1ebb2a45 100644 --- a/conf.d/cmake/config.cmake +++ b/conf.d/cmake/config.cmake @@ -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.