From 18cfaf00eb86b0d71aa45a5cfebba8ab1715b154 Mon Sep 17 00:00:00 2001 From: Mikael Olsson Date: Tue, 18 Apr 2023 12:06:54 +0200 Subject: Fix license file path in Python API CMake file The CMake file for the Python API, currently fails to copy the license file to the build directory because it incorrectly assumes that the file is in the Python API folder. The license file that should be used is in the top of the repository and the CMake file has been updated accordingly. Change-Id: Ia0131cc27abdf28d355c69a556229691901971e5 --- driver_library/python/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver_library') diff --git a/driver_library/python/CMakeLists.txt b/driver_library/python/CMakeLists.txt index 5603273..6554730 100644 --- a/driver_library/python/CMakeLists.txt +++ b/driver_library/python/CMakeLists.txt @@ -1,5 +1,5 @@ # -# SPDX-FileCopyrightText: Copyright 2021-2022 Arm Limited and/or its affiliates +# SPDX-FileCopyrightText: Copyright 2021-2023 Arm Limited and/or its affiliates # # SPDX-License-Identifier: Apache-2.0 # @@ -38,7 +38,7 @@ set(DRIVER_ENV ETHOS_U_DRIVER_INCLUDE="${PROJECT_SOURCE_DIR}/include" # common step - generates swig wrappers add_custom_command(OUTPUT ${OUT_WRAP} COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/README.md ${CMAKE_CURRENT_BINARY_DIR} - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/../../LICENSE-APACHE-2.0.txt ${CMAKE_CURRENT_BINARY_DIR}/LICENSE COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/swig_generate.py ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/setup.py ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src -- cgit v1.2.1