Fixing build bot failure due to python-pip unavailability.

commit: 51d3f421f4
failed due to missing python-pip om machine.
Now the ompd gdb-plugin code will be skipped with a warning
if pip is not available in the machine.
This commit is contained in:
Vignesh Balasubramanian
2022-07-12 15:48:51 +05:30
parent 1e3ee766bb
commit 9dc0d6aaa1

View File

@@ -33,6 +33,10 @@ if(DIST)
"--version"
OUTPUT_VARIABLE PIP_VERSION_INFO
RESULT_VARIABLE HAD_ERROR)
if (NOT ${HAD_ERROR} EQUAL 0)
message(WARNING "PIP command failed, gdb-plugin disabled.")
return()
endif ()
string(REGEX REPLACE " " ";" PIP_VERSION_INFO "${PIP_VERSION_INFO}")
list(GET PIP_VERSION_INFO 1 PIP_VERSION)
set(PYSYSFLAG "")