From b7889fb24d971415af14590d4aa01dbd9a13cd06 Mon Sep 17 00:00:00 2001 From: Prabhu Subramanian Date: Thu, 2 Nov 2023 22:12:42 +0000 Subject: [PATCH] Bug fix Signed-off-by: Prabhu Subramanian --- utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.js b/utils.js index ade13148a1..3681aa3e33 100644 --- a/utils.js +++ b/utils.js @@ -7950,7 +7950,7 @@ export const getCppModules = (src, options, osPkgsList, epkgList) => { parentComponent.homepage = { url: vcPkgData.homepage }; } } - } else if (join(src, "CMakeLists.txt")) { + } else if (existsSync(join(src, "CMakeLists.txt"))) { const retMap = parseCmakeLikeFile(join(src, "CMakeLists.txt"), pkgType); if (retMap.parentComponent && Object.keys(retMap.parentComponent).length) { parentComponent = retMap.parentComponent;