From c3dc0026a4f60966bfd9c5ab12cba764576cda37 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 30 Dec 2011 22:01:16 -0600 Subject: [PATCH] cgal: fix incorrect install names Signed-off-by: Jack Nagel --- Formula/cgal.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Formula/cgal.rb b/Formula/cgal.rb index baaecb6fd39..ad22e8ffefd 100644 --- a/Formula/cgal.rb +++ b/Formula/cgal.rb @@ -17,7 +17,10 @@ class Cgal < Formula end def install - args = ["-DCMAKE_INSTALL_PREFIX=#{prefix}", "-DCMAKE_BUILD_TYPE=Release"] + args = ["-DCMAKE_INSTALL_PREFIX=#{prefix}", + "-DCMAKE_BUILD_TYPE=Release", + "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON", + "-DCMAKE_INSTALL_NAME_DIR=#{HOMEBREW_PREFIX}/lib"] unless ARGV.include? '--imaging' args << "-DWITH_CGAL_Qt3=OFF" << "-DWITH_CGAL_Qt4=OFF" << "-DWITH_CGAL_ImageIO=OFF" end