[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:
+1
-1
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user