From a1ad098dc8fc5204fc797b92faed517337816b82 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 8 Feb 2016 10:44:43 -0500 Subject: 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. --- Tests/RunCMake/install/EXPORT-OldIFace.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/RunCMake/install/EXPORT-OldIFace.cmake b/Tests/RunCMake/install/EXPORT-OldIFace.cmake index 8dfb46b..033f684 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) -- cgit v0.12