blob: 1fa32ccde226fe5be8741c943de304de7f14ba22 [file] [log] [blame]
Julian Hall07679f22020-11-23 17:45:16 +01001#-------------------------------------------------------------------------------
Julian Hall6e02acf2022-02-22 16:25:03 +00002# Copyright (c) 2020-2022, Arm Limited and Contributors. All rights reserved.
Julian Hall07679f22020-11-23 17:45:16 +01003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
Julian Hall0051ed12021-07-22 13:59:24 +01008include($ENV{TS_ROOT}/tools/cmake/compiler/config_iface.cmake REQUIRED)
Julian Hall6e02acf2022-02-22 16:25:03 +00009
10# Set compiler warning level for the root build context. External components
11# are responsible for setting their own warning level.
12if(DEFINED TS_ROOT)
13 string(APPEND CMAKE_C_FLAGS_INIT " -Wall")
14 string(APPEND CMAKE_CXX_FLAGS_INIT " -Wall")
15endif()