1From 6b38b9990c4dab0cb8524506ef129d4f326f3800 Mon Sep 17 00:00:00 2001 2From: Jon Mason <jon.mason@arm.com> 3Date: Thu, 14 Dec 2023 09:23:09 -0500 4Subject: [PATCH] cmake: modify path to libmetal version file 5 6Commit ad87802d6e01e97946de20b6c2fa28aed184ed20 changed how the 7versioning is done and created a version file. Due to this change, 8the VERSION file is not being found when building because the source dir 9is pointing to tf-m. Modify to point where we want it. 10 11Upstream-Status: Inappropriate [Build workaround] 12 13Signed-off-by: Jon Mason <jon.mason@arm.com> 14--- 15 cmake/options.cmake | 2 +- 16 1 file changed, 1 insertion(+), 1 deletion(-) 17 18diff --git a/cmake/options.cmake b/cmake/options.cmake 19index a7b4ef8bdf03..a06009b6acc4 100644 20--- a/cmake/options.cmake 21+++ b/cmake/options.cmake 22@@ -1,4 +1,4 @@ 23-file(READ ${LIBMETAL_ROOT_DIR}/VERSION ver) 24+file(READ ${LIBMETAL_ROOT_DIR}/../libmetal/VERSION ver) 25 26 string(REGEX MATCH "VERSION_MAJOR = ([0-9]*)" _ ${ver}) 27 set(PROJECT_VERSION_MAJOR ${CMAKE_MATCH_1}) 28