Build: Set default build type to debug
If the build type is not set explicitly on the command line
then it is unknown what optimization and debug symbol settings
the compiler will use. This patch eliminates this vagueness.
Change-Id: I0493e58ab991d205ba634f7381a69faa07646101
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 4fb7b06..e409cbe 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -21,6 +21,9 @@
message(FATAL_ERROR "ERROR: Compiler \"${COMPILER}\" is not supported.")
endif()
+#Configure the default build type
+set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (i.e. Debug)")
+
if(CORE_IPC)
if (TFM_LVL EQUAL 3)
message(FATAL_ERROR "ERROR: Invalid isolation level!")