We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fd46f8 commit ed8c660Copy full SHA for ed8c660
cmake/public/LoadHIP.cmake
@@ -157,7 +157,15 @@ if(HIP_FOUND)
157
find_package_and_print_version(hipcub REQUIRED)
158
find_package_and_print_version(rocthrust REQUIRED)
159
find_package_and_print_version(hipsolver REQUIRED)
160
- find_package_and_print_version(hiprtc REQUIRED)
+ # workaround cmake 4 build issue
161
+ if(CMAKE_VERSION VERSION_GREATER_EQUAL "4.0.0")
162
+ message(WARNING "Work around hiprtc cmake failure for cmake >= 4")
163
+ set(CMAKE_POLICY_VERSION_MINIMUM 3.5)
164
+ find_package_and_print_version(hiprtc REQUIRED)
165
+ unset(CMAKE_POLICY_VERSION_MINIMUM)
166
+ else()
167
168
+ endif()
169
170
if(UNIX)
171
find_package_and_print_version(rccl)
0 commit comments