Skip to content

Commit cfefb73

Browse files
gabor-toth-armadeaarm
authored andcommitted
RSE: Unittests: Eliminate target duplication of unity tool
As a result of policy changes related to FetchContent the unity target is both created by the fetch_remote_library function and by the add_library command. This change eliminates this issue. Signed-off-by: Gabor Toth <[email protected]> Change-Id: I684d0cc9497453b8a11b91db64241bdc1a6c1638
1 parent 30eeefb commit cfefb73

File tree

1 file changed

+1
-5
lines changed
  • platform/ext/target/arm/rse/common/unittests/framework/unity

1 file changed

+1
-5
lines changed

platform/ext/target/arm/rse/common/unittests/framework/unity/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-------------------------------------------------------------------------------
2-
# Copyright (c) 2024, Arm Limited. All rights reserved.
2+
# SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
33
#
44
# SPDX-License-Identifier: BSD-3-Clause
55
#
@@ -22,12 +22,8 @@ fetch_remote_library(
2222
GIT_PROGRESS FALSE
2323
)
2424

25-
add_library(unity STATIC ${UNITY_PATH}/src/unity.c)
26-
2725
target_compile_definitions(unity PUBLIC
2826
UNITY_USE_COMMAND_LINE_ARGS
2927
UNITY_SUPPORT_TEST_CASES
3028
UNITY_INCLUDE_PRINT_FORMATTED
3129
)
32-
33-
target_include_directories(unity PUBLIC ${UNITY_PATH}/src)

0 commit comments

Comments
 (0)