diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rwxr-xr-x | build_default.py | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e61e378..7dccd75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,6 +74,10 @@ assert_defined(USE_CASE_BUILD) assert_defined(CPU_PROFILE_ENABLED) assert_defined(CMAKE_TOOLCHAIN_FILE) +if(POLICY CMP0123) + cmake_policy(SET CMP0123 NEW) +endif() + project(arm_ml_embedded_evaluation_kit VERSION 21.11.1 DESCRIPTION "ARM ML Embedded Evaluation Kit" diff --git a/build_default.py b/build_default.py index 3971a05..c0cf8d1 100755 --- a/build_default.py +++ b/build_default.py @@ -72,8 +72,7 @@ def run(toolchain: str, # 1. Make sure the toolchain is supported, and set the right one here supported_toolchain_ids = ["gnu", "arm"] - assert (toolchain in supported_toolchain_ids, - f"Toolchain must be from {supported_toolchain_ids}") + assert toolchain in supported_toolchain_ids, f"Toolchain must be from {supported_toolchain_ids}" if toolchain == "arm": toolchain_file_name = "bare-metal-armclang.cmake" elif toolchain == "gnu": |