File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,15 @@ function target_envs(target::AbstractString)
101101 mapping[" NM" ] = target_tool (" nm" )
102102 end
103103
104- # On OSX ask for a minimum of OSX 10.8 for C++ ABI (This is default now?)
105- # if contains(target, "-apple-")
106- # mapping["LDFLAGS"] = "-mmacosx-version-min=10.8"
107- # end
104+ # On OSX, we need to do a little more work.
105+ if contains (target, " -apple-" )
106+ # First, tell CMake what our deployment target is, so that it tries to
107+ # set -mmacosx-version-min and such appropriately
108+ mapping[" MACOSX_DEPLOYMENT_TARGET" ] = " 10.8"
109+
110+ # Also put this into LDFLAGS because some packages are hard of hearing
111+ mapping[" LDFLAGS" ] = " -mmacosx-version-min=10.8"
112+ end
108113
109114 return mapping
110115end
You can’t perform that action at this time.
0 commit comments