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:
Wilfried Chauveau 2024-06-24 12:02:03 +01:00 committed by Anas Nashif
parent ada6ab25ee
commit 3d31d50c0d

View file

@ -1,11 +1,9 @@
# Copyright (c) 2021-2022 Arm Limited (or its affiliates). All rights reserved. # Copyright (c) 2021-2022 Arm Limited (or its affiliates). All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
set(armfvp_bin_path $ENV{ARMFVP_BIN_PATH})
find_program( find_program(
ARMFVP ARMFVP
PATHS ${armfvp_bin_path} PATHS ENV ARMFVP_BIN_PATH
NO_DEFAULT_PATH NO_DEFAULT_PATH
NAMES ${ARMFVP_BIN_NAME} NAMES ${ARMFVP_BIN_NAME}
) )