aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-01-04 21:30:10 -0800
committerAdam Vandenberg2013-01-04 21:30:10 -0800
commit2a40ff08a251063f649e4f73275f5994449ee432 (patch)
treefc7e029f63159f1106c29ae1b206dd4cade8fde3 /Library
parent4bcdb8aeb3ecee272722c9bb1eaa6e842dbeb7be (diff)
downloadbrew-2a40ff08a251063f649e4f73275f5994449ee432.tar.bz2
Only add -F if the frameworks folder exists
Closes Homebrew/homebrew#16901.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index b3b8d26b3..095d05b70 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -33,9 +33,11 @@ module HomebrewEnvExtension
self['CMAKE_PREFIX_PATH'] = "#{HOMEBREW_PREFIX}"
end
- append 'CPPFLAGS', "-F#{HOMEBREW_PREFIX}/Frameworks"
- append 'LDFLAGS', "-F#{HOMEBREW_PREFIX}/Frameworks"
- self['CMAKE_FRAMEWORK_PATH'] = HOMEBREW_PREFIX/"Frameworks"
+ if (HOMEBREW_PREFIX/'Frameworks').exist?
+ append 'CPPFLAGS', "-F#{HOMEBREW_PREFIX}/Frameworks"
+ append 'LDFLAGS', "-F#{HOMEBREW_PREFIX}/Frameworks"
+ self['CMAKE_FRAMEWORK_PATH'] = HOMEBREW_PREFIX/"Frameworks"
+ end
# Os is the default Apple uses for all its stuff so let's trust them
set_cflags "-Os #{SAFE_CFLAGS_FLAGS}"