summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-01 09:38:19 -0400
committerBrad King <brad.king@kitware.com>2015-10-01 09:47:41 -0400
commit981068b79f3703a095f5aa254da6c7d3f997a265 (patch)
tree2284c3adb074089e6e720239e561ffb6df694cc3 /Tests
parente8954d0b3b6f7b29a00ec0238fc91d84021f0705 (diff)
downloadcmake-981068b79f3703a095f5aa254da6c7d3f997a265.tar.gz
Tests: Avoid OS X 10.5 limitation warning in RunCMake.CPack* tests
The DEPENDENCIES test case uses install(TARGETS) and so generates a warning: CMake Warning in CMakeLists.txt: WARNING: Target "test_prog" has runtime paths which cannot be changed during install. To change runtime paths, OS X version 10.6 or newer is required. Therefore, runtime paths will not be changed when installing. CMAKE_BUILD_WITH_INSTALL_RPATH may be used to work around this limitation. Set CMAKE_BUILD_WITH_INSTALL_RPATH to avoid the warning since we do not need to run the binaries from the build tree anyway.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CPack/DEPENDENCIES.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/DEPENDENCIES.cmake b/Tests/RunCMake/CPack/DEPENDENCIES.cmake
index 8a0ba35fb9..4f6d65fb00 100644
--- a/Tests/RunCMake/CPack/DEPENDENCIES.cmake
+++ b/Tests/RunCMake/CPack/DEPENDENCIES.cmake
@@ -1,3 +1,5 @@
+set(CMAKE_BUILD_WITH_INSTALL_RPATH 1)
+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test_lib.hpp"
"int test_lib();\n")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test_lib.cpp"