Skip to content

Commit

Permalink
Use correct policy number
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Jan 5, 2024
1 parent 09dfb20 commit f7a4c4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions share/rocmcmakebuildtools/cmake/ROCMTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
else()
set(_rocm_test_genex_eval "1")
endif()
if(POLICY CMP0079)
cmake_policy(SET CMP0079 NEW)
if(POLICY CMP0095)
cmake_policy(SET CMP0095 NEW)
endif()
function(rocm_save_test)
set(options)
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(POLICY CMP0079)
if(POLICY CMP0095)
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 f7a4c4d

Please sign in to comment.