SWDEV-449212 - Fix static build

Disable Python interface and CLI tool for static builds (when
-DBUILD_SHARED_LIBS=OFF is passed to cmake)

Change-Id: I32bbd94d70628a50029a748f7493b55c91d45e02
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
This commit is contained in:
Galantsev, Dmitrii
2024-03-14 03:43:52 -05:00
کامیت شده توسط Dmitrii Galantsev
والد 25c8ff6c2a
کامیت eef4169a0f
3فایلهای تغییر یافته به همراه22 افزوده شده و 8 حذف شده
+5
مشاهده پرونده
@@ -137,6 +137,11 @@ do_install_amdsmi_python_lib() {
echo "Removed old AMD-SMI python library (amdsmi)..."
fi
# static builds don't include python lib
if [ "@BUILD_SHARED_LIBS@" != "ON" ]; then
return
fi
# upgrade pip if it's an ancient version
# otherwise the amdsmi install will fail
local pip_version