Only add -F if the frameworks folder exists
Closes Homebrew/homebrew#16901.
This commit is contained in:
parent
4bcdb8aeb3
commit
2a40ff08a2
@ -33,9 +33,11 @@ module HomebrewEnvExtension
|
||||
self['CMAKE_PREFIX_PATH'] = "#{HOMEBREW_PREFIX}"
|
||||
end
|
||||
|
||||
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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user