Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if CMake supports CMP0144 before use #85

Open
wants to merge 1 commit into
base: rocm6.4_internal_testing
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cmake/onnxruntime_providers_migraphx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
# Add search paths for default rocm installation
list(APPEND CMAKE_PREFIX_PATH /opt/rocm/hcc /opt/rocm/hip /opt/rocm $ENV{HIP_PATH})

# Suppress the warning about the small capitals of the package name - Enable when support to CMake 3.27.0 is used
# cmake_policy(SET CMP0144 NEW)
if(POLICY CMP0144)
# Suppress the warning about the small capitals of the package name
cmake_policy(SET CMP0144 NEW)
endif()

if(WIN32 AND NOT HIP_PLATFORM)
set(HIP_PLATFORM "amd")
Expand Down
Loading