Compiler - set CXX Compiler if not set (#466)

[ROCm/rocdecode commit: 7a6073103a]
Tá an tiomantas seo le fáil i:
Kiriti Gowda údaraithe agus GitHub tiomanta 2024-12-02 13:02:09 -08:00
1 tuismitheoir dfa22cbbe1
tiomantas 2eb3bd30ef
6 comhad athraithe
+24 -6

Níor tháinig aon chomhaid le do chuardach

@@ -36,7 +36,10 @@ endif()
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../cmake)
list(APPEND CMAKE_PREFIX_PATH ${ROCM_PATH}/hip ${ROCM_PATH})
set(CMAKE_CXX_COMPILER ${ROCM_PATH}/bin/amdclang++)
# Set AMD Clang as default compiler
if (NOT DEFINED CMAKE_CXX_COMPILER)
set(CMAKE_CXX_COMPILER ${ROCM_PATH}/bin/amdclang++)
endif()
# rocDecode sample build type
set(DEFAULT_BUILD_TYPE "Release")