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:
کامیت شده توسط
Dmitrii Galantsev
والد
25c8ff6c2a
کامیت
eef4169a0f
@@ -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
|
||||
|
||||
مرجع در شماره جدید
Block a user