mirror of https://github.com/ARMmbed/mbed-os.git
CMake: add mbed_ prefix to our CMake files
To avoid conflicts as we expose our CMake list files via CMAKE_MODULE_PATH. Some files already include it, this aligns the rest of files. I leave app.cmake as it is - it's user facing and it would be breaking change. We can clean this one for the next major version.pull/14516/head
parent
b6a90c4ae1
commit
65e246fe4d
|
@ -6,7 +6,7 @@
|
||||||
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
|
||||||
|
|
||||||
include(${MBED_CONFIG_PATH}/mbed_config.cmake)
|
include(${MBED_CONFIG_PATH}/mbed_config.cmake)
|
||||||
include(tools/cmake/set_linker_script.cmake)
|
include(mbed_set_linker_script)
|
||||||
|
|
||||||
project(mbed-os)
|
project(mbed-os)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
|
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
include(../tools/cmake/set_linker_script.cmake)
|
|
||||||
|
include(mbed_set_linker_script)
|
||||||
|
|
||||||
add_subdirectory(TARGET_Ambiq_Micro EXCLUDE_FROM_ALL)
|
add_subdirectory(TARGET_Ambiq_Micro EXCLUDE_FROM_ALL)
|
||||||
add_subdirectory(TARGET_Analog_Devices EXCLUDE_FROM_ALL)
|
add_subdirectory(TARGET_Analog_Devices EXCLUDE_FROM_ALL)
|
||||||
|
|
|
@ -15,11 +15,11 @@ include(${MBED_CONFIG_PATH}/mbed_config.cmake)
|
||||||
# Load toolchain file
|
# Load toolchain file
|
||||||
if(NOT CMAKE_TOOLCHAIN_FILE OR MBED_TOOLCHAIN_FILE_USED)
|
if(NOT CMAKE_TOOLCHAIN_FILE OR MBED_TOOLCHAIN_FILE_USED)
|
||||||
set(MBED_TOOLCHAIN_FILE_USED TRUE CACHE INTERNAL "")
|
set(MBED_TOOLCHAIN_FILE_USED TRUE CACHE INTERNAL "")
|
||||||
include(toolchain)
|
include(mbed_toolchain)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Specify available build profiles and add options for the selected build profile
|
# Specify available build profiles and add options for the selected build profile
|
||||||
include(profile)
|
include(mbed_profile)
|
||||||
|
|
||||||
enable_language(C CXX ASM)
|
enable_language(C CXX ASM)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue