Skip to content

Commit 921d788

Browse files
committed
Remove unneeded RPMs from non-debian builds
Signed-off-by: Russell McGuire <russell.w.mcguire@intel.com>
1 parent 0f246f6 commit 921d788

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ set(TARGET_LOADER_NAME ze_loader)
224224

225225
# Canonical Ubuntu/Debian package names (libze1 / libze-dev)
226226
# produced alongside the existing level-zero / level-zero-devel packages.
227-
if(NOT BUILD_INSTALLER)
227+
# Restricted to Debian/Ubuntu systems only; RPM-based distros (SLES, RHEL, …)
228+
# must not produce libze1/libze-dev packages.
229+
if(NOT BUILD_INSTALLER AND EXISTS "/etc/debian_version")
228230
set(CANONICAL_LIB_COMPONENT "libze1")
229231
set(CANONICAL_SDK_COMPONENT "libze-dev")
230232
endif()

0 commit comments

Comments
 (0)