[BUILD] MSCCLPP: Fix OS check for CentOS (#1568)

Signed-off-by: nileshnegi <Nilesh.Negi@amd.com>
Co-authored-by: corey-derochie-amd <corey.derochie@amd.com>
This commit is contained in:
Nilesh M Negi
2025-02-25 13:03:04 -06:00
committed by GitHub
orang tua fdf75fd2c1
melakukan daaa6e155f
+1 -1
Melihat File
@@ -324,7 +324,7 @@ if (ENABLE_MSCCLPP AND ROCM_VERSION VERSION_LESS "60200")
endif() endif()
# cmake_host_system_information(RESULT HOST_OS_ID QUERY DISTRIB_ID) ## Requires cmake 3.22 # cmake_host_system_information(RESULT HOST_OS_ID QUERY DISTRIB_ID) ## Requires cmake 3.22
execute_process( execute_process(
COMMAND bash -c "grep '^ID=' /etc/os-release | cut -d'=' -f2" COMMAND bash -c "grep '^ID=' /etc/os-release | cut -d'=' -f2 | cut -d'\"' -f2"
OUTPUT_VARIABLE HOST_OS_ID OUTPUT_VARIABLE HOST_OS_ID
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_STRIP_TRAILING_WHITESPACE
) )