OS X: Make sure RPATHs are unique to avoid possible corruption.

When using link_directories() and including CMAKE_CFG_INTDIR,
one can end up with duplicate RPATHs in the binary which
install_name_tool cannot fix without corrupting the binary.
Also, the cmake_install.cmake file has been fixed to correctly
handle these generator specific variables.
This commit is contained in:
Clinton Stimpson
2014-02-01 21:18:04 -07:00
parent 6385c71516
commit 028a5285d8
7 changed files with 94 additions and 11 deletions
+4
View File
@@ -84,6 +84,10 @@ public:
virtual void FindMakeProgram(cmMakefile*);
virtual std::string ExpandCFGIntDir(const std::string& str,
const std::string& config) const;
protected:
// Does this VS version link targets to each other if there are
// dependencies in the SLN file? This was done for VS versions