Skip to content

Commit

Permalink
Use policy instead of cmake version
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Jan 5, 2024
1 parent 94b1682 commit 09dfb20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/rocmcmakebuildtools/cmake/ROCMTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
else()
set(_rocm_test_genex_eval "1")
endif()
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0")
if(POLICY CMP0079)
cmake_policy(SET CMP0079 NEW)
endif()
function(rocm_save_test)
Expand Down Expand Up @@ -221,7 +221,7 @@ function(rocm_install_test)
set(INSTALL_PREFIX "$<TARGET_PROPERTY:tests,ROCM_TEST_INSTALLDIR>")
if(PARSE_TARGETS)
foreach(TARGET ${PARSE_TARGETS})
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0")
if(POLICY CMP0079)
set_property(TARGET ${TARGET} APPEND PROPERTY INSTALL_RPATH "\${ORIGIN}/../../../lib")
else()
set_property(TARGET ${TARGET} APPEND PROPERTY INSTALL_RPATH "\\\${ORIGIN}/../../../lib")
Expand Down

0 comments on commit 09dfb20

Please sign in to comment.