Skip to content

Commit

Permalink
Add deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 committed Feb 15, 2024
1 parent fae44ed commit a36e4a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions share/rocm/cmake/ROCMConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ get_filename_component(_new_rocmcmakebuildtools_path "${_new_rocmcmakebuildtools
# two directories up is sufficient for windows search, but linux search requires the share directory
get_filename_component(_new_rocmcmakebuildtools_path_linux "${_new_rocmcmakebuildtools_path}" DIRECTORY)

# Emit deprecation message
set(_rocm_deprecation_message "The 'ROCM' CMake package is deprecated. Please use 'ROCmCMakeBuildTools' instead.")
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.17.0")
message(DEPRECATION "${_rocm_deprecation_message}")
else()
message(AUTHOR_WARNING "${_rocm_deprecation_message}")
endif()
unset(_rocm_deprecation_message)

include(CMakeFindDependencyMacro)

find_dependency(
Expand Down

0 comments on commit a36e4a8

Please sign in to comment.