message: Update AMD target handling
diff: @@ -32,8 +32,21 @@ endif()
  set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOL "Add paths to linker search and installed rpath")
  -# AMD targets
  +# Detect compiler support for target ID
  +if( CMAKE_CXX_COMPILER MATCHES ".*/hipcc$" )
  + execute_process(COMMAND ${CMAKE_CXX_COMPILER} "--help"
  + OUTPUT_VARIABLE CXX_OUTPUT
  + OUTPUT_STRIP_TRAILING_WHITESPACE
  + ERROR_STRIP_TRAILING_WHITESPACE)
  + string(REGEX MATCH ".mcode\-object\-version" TARGET_ID_SUPPORT ${CXX_OUTPUT})
  +endif()
  +
  +# Use target ID syntax if supported for AMDGPU_TARGETS
  +if(TARGET_ID_SUPPORT)
  + set(AMDGPU_TARGETS gfx900:xnack-;gfx906:xnack-;gfx908:xnack- CACHE STRING "List of specific machine types for library to target")
  +else()
  set(AMDGPU_TARGETS gfx900;gfx906;gfx908 CACHE STRING "List of specific machine types for library to target")
  +endif()
  # Verify that hcc or hipcc compiler is used on ROCM platform
  include(cmake/VerifyCompiler.cmake)
  