cmake: emu: armfvp: Fix find program’s search paths
The current implementation does not work well when ARMFVP_BIN_PATH is a colon separated list. This lets `find_program` deal with the lists. Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
This commit is contained in:
parent
ada6ab25ee
commit
3d31d50c0d
1 changed files with 1 additions and 3 deletions
|
|
@ -1,11 +1,9 @@
|
|||
# Copyright (c) 2021-2022 Arm Limited (or its affiliates). All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set(armfvp_bin_path $ENV{ARMFVP_BIN_PATH})
|
||||
|
||||
find_program(
|
||||
ARMFVP
|
||||
PATHS ${armfvp_bin_path}
|
||||
PATHS ENV ARMFVP_BIN_PATH
|
||||
NO_DEFAULT_PATH
|
||||
NAMES ${ARMFVP_BIN_NAME}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue