aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/vtk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/vtk.rb')
-rw-r--r--Library/Formula/vtk.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/vtk.rb b/Library/Formula/vtk.rb
index 4411c18c5..e70e799a8 100644
--- a/Library/Formula/vtk.rb
+++ b/Library/Formula/vtk.rb
@@ -64,9 +64,9 @@ class Vtk < Formula
args << "-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON"
ENV['DYLD_LIBRARY_PATH'] = `pwd`.strip + "/build/bin"
- system "mkdir build"
args << ".."
- cd 'build' do
+
+ mkdir 'build' do
system "cmake", *args
# Work-a-round to avoid:
# ld: file not found: /usr/local/Cellar/vtk/5.8.0/lib/vtk-5.8/libvtkDICOMParser.5.8.dylib for architecture x86_64"