From 3d31d50c0d7bc560937a1d0fee104664e8830ec3 Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Mon, 24 Jun 2024 12:02:03 +0100 Subject: [PATCH] =?UTF-8?q?cmake:=20emu:=20armfvp:=20Fix=20find=20program?= =?UTF-8?q?=E2=80=99s=20search=20paths?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- cmake/emu/armfvp.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/emu/armfvp.cmake b/cmake/emu/armfvp.cmake index f5f1cc62a47..70fa5dc0aa3 100644 --- a/cmake/emu/armfvp.cmake +++ b/cmake/emu/armfvp.cmake @@ -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} )