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
commit34f5995e249675e7b9452318726469c4a92ac09c (patch)
tree6fed55482cc7ecb76fcd5d18db720397dded1bc6 /Library
parentf9edc7a3f984fa27a22194b931903ccc5fb85f07 (diff)
downloadhomebrew-34f5995e249675e7b9452318726469c4a92ac09c.tar.bz2
Only add -F if the frameworks folder exists
Closes #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}"