summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file-RPATH
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-03 00:27:09 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-03 17:26:58 (GMT)
commite017ba046ccab62fcc67e7cf8fc858e991c1d3e7 (patch)
tree134567db3c1b3b4fab193a75a06413bdf003fe8f /Tests/RunCMake/file-RPATH
parent56fc4a325f08465b725b08b3975cd51bdd2305c8 (diff)
downloadCMake-e017ba046ccab62fcc67e7cf8fc858e991c1d3e7.zip
CMake-e017ba046ccab62fcc67e7cf8fc858e991c1d3e7.tar.gz
CMake-e017ba046ccab62fcc67e7cf8fc858e991c1d3e7.tar.bz2
AIX: Enable XCOFF editing to replace RPATH on installation
Avoid relinking before installation.
Diffstat (limited to 'Tests/RunCMake/file-RPATH')
-rw-r--r--Tests/RunCMake/file-RPATH/RunCMakeTest.cmake4
-rw-r--r--Tests/RunCMake/file-RPATH/XCOFF.cmake7
2 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/file-RPATH/RunCMakeTest.cmake b/Tests/RunCMake/file-RPATH/RunCMakeTest.cmake
index 11e90bb..eb7b497 100644
--- a/Tests/RunCMake/file-RPATH/RunCMakeTest.cmake
+++ b/Tests/RunCMake/file-RPATH/RunCMakeTest.cmake
@@ -3,3 +3,7 @@ include(RunCMake)
if(HAVE_ELF_H)
run_cmake_command(ELF ${CMAKE_COMMAND} -P ${RunCMake_SOURCE_DIR}/ELF.cmake)
endif()
+
+if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
+ run_cmake_command(XCOFF ${CMAKE_COMMAND} -P ${RunCMake_SOURCE_DIR}/XCOFF.cmake)
+endif()
diff --git a/Tests/RunCMake/file-RPATH/XCOFF.cmake b/Tests/RunCMake/file-RPATH/XCOFF.cmake
new file mode 100644
index 0000000..b570920
--- /dev/null
+++ b/Tests/RunCMake/file-RPATH/XCOFF.cmake
@@ -0,0 +1,7 @@
+set(names
+ xcoff32.bin
+ xcoff64.bin
+ )
+set(format XCOFF)
+
+include(${CMAKE_CURRENT_LIST_DIR}/Common.cmake)