Throw an error on missing cmake in build config
authorZoltowski, Wojciech <wojciechx.zoltowski@intel.com>
Fri, 3 Jul 2020 07:45:14 +0000 (09:45 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 3 Aug 2020 10:14:36 +0000 (06:14 -0400)
This raises the error instead on falling back to using cmake
from PATH (which is not in PATH, as already checked)

Components: Framework

VK-GL-CTS Issue: 2442

Change-Id: Id85b9097dffb7c8a69794ff4cfd5ad677cc73b10

scripts/build/config.py

index ad264f5..67cacdb 100644 (file)
@@ -68,8 +68,7 @@ class BuildConfig:
                        for path in possiblePaths:
                                if os.path.exists(path):
                                        return path
-
-               # Fall back to PATH - may fail later
+                       raise FileNotFoundError("cmake executable file is not avaliable on the platform. It may not have been installed or added to PATH environment variable")
                return "cmake"
 
 class CMakeGenerator: