Merge pull request #7140 from Bo98/sdk
formula: ensure CMake uses the desired SDK
This commit is contained in:
commit
e4d520e840
@ -1335,6 +1335,10 @@ class Formula
|
|||||||
# CMake cache entries for other weak symbols may be added here as needed.
|
# CMake cache entries for other weak symbols may be added here as needed.
|
||||||
args << "-DHAVE_CLOCK_GETTIME:INTERNAL=0" if MacOS.version == "10.11" && MacOS::Xcode.version >= "8.0"
|
args << "-DHAVE_CLOCK_GETTIME:INTERNAL=0" if MacOS.version == "10.11" && MacOS::Xcode.version >= "8.0"
|
||||||
|
|
||||||
|
# Ensure CMake is using the same SDK we are using.
|
||||||
|
sdk = MacOS.sdk_path_if_needed
|
||||||
|
args << "-DCMAKE_OSX_SYSROOT=#{sdk}" if sdk
|
||||||
|
|
||||||
args
|
args
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user