summaryrefslogtreecommitdiff
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-08 10:44:43 -0500
committerBrad King <brad.king@kitware.com>2016-02-08 10:44:43 -0500
commita1ad098dc8fc5204fc797b92faed517337816b82 (patch)
tree5ef4cbcce8e54305f12197d34c84c1806dcd4f03 /Tests/RunCMake
parent47460f3e152a59af81edd816cdfe6e0d54e38090 (diff)
downloadcmake-a1ad098dc8fc5204fc797b92faed517337816b82.tar.gz
Tests: Avoid OS X 10.5 limitation warning in RunCMake.install test
The EXPORT-OldIFace test case uses install(TARGETS) and so generates a warning: CMake Warning in CMakeLists.txt: WARNING: Target "foo" 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/RunCMake')
-rw-r--r--Tests/RunCMake/install/EXPORT-OldIFace.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/EXPORT-OldIFace.cmake b/Tests/RunCMake/install/EXPORT-OldIFace.cmake
index 8dfb46b12e..033f68446e 100644
--- a/Tests/RunCMake/install/EXPORT-OldIFace.cmake
+++ b/Tests/RunCMake/install/EXPORT-OldIFace.cmake
@@ -1,4 +1,5 @@
enable_language(C)
+set(CMAKE_BUILD_WITH_INSTALL_RPATH 1)
add_subdirectory(EXPORT-OldIFace)
add_library(foo SHARED empty.c)
target_link_libraries(foo bar)