Skip to content
Snippets Groups Projects
Commit c98fe91f authored by Jack Nagel's avatar Jack Nagel
Browse files

Don't directly assign Pathname objects to environment variables

Fixes Homebrew/homebrew#32234.
parent c5885757
No related branches found
No related tags found
No related merge requests found
......@@ -42,10 +42,11 @@ module Stdenv
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"
frameworks = HOMEBREW_PREFIX.join("Frameworks")
if frameworks.directory?
append "CPPFLAGS", "-F#{frameworks}"
append "LDFLAGS", "-F#{frameworks}"
self["CMAKE_FRAMEWORK_PATH"] = frameworks.to_s
end
# Os is the default Apple uses for all its stuff so let's trust them
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment