Filter list before mapping it

This commit is contained in:
Jack Nagel 2014-04-21 00:17:22 -05:00
parent cb58bd779b
commit ed8851dfa1

View File

@ -214,7 +214,7 @@ class Cmd
# We reject brew's lib as we explicitly add this as a -L flag, thus it
# is given higher priority by cc, so it surpasses the system libpath.
# NOTE this only counts if Homebrew is installed at /usr/local
syspath.map{|d| "#{d}/lib" }.reject{|d| d == "#{brewfix}/lib" }
syspath.reject { |d| d == brewfix }.map! { |d| File.join(d, "lib") }
end
def cpath
cpath = path_split("CMAKE_PREFIX_PATH").map! { |d| File.join(d, "include") }