deps_builder: Skip HIPRT when hipcc is not found

It should be possible to build all other deps when hipcc
is not present on the system, however the hiprt build
errored out during the configuration phase.

This change skips HIPRT when hipcc is not available
This commit is contained in:
Ray Molenkamp
2024-11-08 08:11:26 -07:00
parent 510f97865a
commit 3809ae297b

View File

@@ -90,7 +90,11 @@ include(cmake/harfbuzz.cmake)
if(NOT APPLE)
include(cmake/xr_openxr.cmake)
if(NOT BLENDER_PLATFORM_ARM)
include(cmake/hiprt.cmake)
if(HIP_FOUND)
include(cmake/hiprt.cmake)
else()
message(STATUS "Missing HIP compiler, skipping HIPRT build")
endif()
include(cmake/dpcpp.cmake)
include(cmake/dpcpp_deps.cmake)
if(NOT WIN32)