generatorrunner: fix install name issue

MacPorts passes these flags by default, we should consider doing the
same.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-02-12 21:12:47 -06:00
parent 53374a1640
commit 56fac60cb3

View file

@ -10,7 +10,11 @@ class Generatorrunner < Formula
depends_on 'apiextractor'
def install
system "cmake . #{std_cmake_parameters}"
args = std_cmake_parameters.split
args << "-DCMAKE_INSTALL_NAME_DIR=#{HOMEBREW_PREFIX}/lib"
args << "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON"
system "cmake", ".", *args
system "make install"
end
end