Skip to content

Commit

Permalink
Consolidate LINUX_FLAVOR test
Browse files Browse the repository at this point in the history
Signed-off-by: Soren Soe <[email protected]>
  • Loading branch information
stsoe committed Jan 31, 2025
1 parent 6049a8e commit a9959db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CMake/components.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ if (NOT XRT_BASE AND NOT XRT_NPU AND NOT XRT_ALVEO)
set(XRT_XRT 1)
endif()

if (NOT WIN32 AND ${LINUX_FLAVOR} MATCHES "^(ubuntu|debian|rhel|centos)")
if (NOT WIN32)
if (${LINUX_FLAVOR} MATCHES "^(ubuntu|debian)")
set (XRT_DEV_COMPONENT_SUFFIX "-dev")
elseif (${LINUX_FLAVOR} MATCHES "^(rhel|centos)")
elseif (${LINUX_FLAVOR} MATCHES "^(rhel|centos|fedora)")
set (XRT_DEV_COMPONENT_SUFFIX "-devel")
endif()
endif()

# NSIS packager cannot handle '-' in component names
if (WIN32)
set (XRT_DEV_COMPONENT_SUFFIX "_dev")
endif()
Expand Down

0 comments on commit a9959db

Please sign in to comment.