Allow overriding CMAKE_CXX_COMPILER (#436)

Using set as-is doesn't allow the user to set their own rocm path.
This is useful for community packagers or debugging.

Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
Tá an tiomantas seo le fáil i:
Jeremy Newton
2024-10-24 11:36:14 -04:00
tiomanta ag GitHub
tuismitheoir e463cbd0f2
tiomantas 07ecb5e7d6
D'athraigh 8 comhad le 8 breiseanna agus 8 scriosta
+1 -1
Féach ar an gComhad
@@ -36,7 +36,7 @@ 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}/lib/llvm/bin/clang++)
set(CMAKE_CXX_COMPILER ${ROCM_PATH}/lib/llvm/bin/clang++ CACHE STRING "ROCm Compiler path")
# rocDecode sample build type
set(DEFAULT_BUILD_TYPE "Release")