diff options
author | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2016-09-30 23:30:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-03 17:42:27 (GMT) |
commit | dc6d8066607435a0d4b6338bc53e0b1ac746bd35 (patch) | |
tree | bd3368be75c92bc776ba126c984c98e5abd07436 /Source/cmTarget.cxx | |
parent | 484dc1e5d85f4f468e27816eab0fccc9c7d6ec11 (diff) | |
download | CMake-dc6d8066607435a0d4b6338bc53e0b1ac746bd35.zip CMake-dc6d8066607435a0d4b6338bc53e0b1ac746bd35.tar.gz CMake-dc6d8066607435a0d4b6338bc53e0b1ac746bd35.tar.bz2 |
Add a BUILD_RPATH target property specifying build-tree RPATH entries
Users may need to add custom `RPATH` entries to be able to run binaries
from their build tree without setting `LD_LIBRARY_PATH`. Provide a way
to do this that does not affect the install-tree `RPATH`.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 54e0bea..13a4744 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -102,6 +102,7 @@ cmTarget::cmTarget(std::string const& name, cmState::TargetType type, this->SetPropertyDefault("ANDROID_JAR_DEPENDENCIES", CM_NULLPTR); this->SetPropertyDefault("ANDROID_ASSETS_DIRECTORIES", CM_NULLPTR); this->SetPropertyDefault("ANDROID_ANT_ADDITIONAL_OPTIONS", CM_NULLPTR); + this->SetPropertyDefault("BUILD_RPATH", CM_NULLPTR); this->SetPropertyDefault("INSTALL_NAME_DIR", CM_NULLPTR); this->SetPropertyDefault("INSTALL_RPATH", ""); this->SetPropertyDefault("INSTALL_RPATH_USE_LINK_PATH", "OFF"); |