Skip to content
Snippets Groups Projects
Unverified Commit e4d520e8 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #7140 from Bo98/sdk

formula: ensure CMake uses the desired SDK
parents cb99abe2 2592b937
No related branches found
No related tags found
No related merge requests found
......@@ -1335,6 +1335,10 @@ class Formula
# 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"
# Ensure CMake is using the same SDK we are using.
sdk = MacOS.sdk_path_if_needed
args << "-DCMAKE_OSX_SYSROOT=#{sdk}" if sdk
args
end
......
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