We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 524a9e7 commit c900779Copy full SHA for c900779
utils/build-script-impl
@@ -658,6 +658,12 @@ function set_build_options_for_host() {
658
659
cmake_os_sysroot="$(xcrun --sdk ${platform} --show-sdk-path)"
660
661
+ # Give the SDK sysroot higher priority in calls to CMake `find_*`
662
+ # functions, over paths that may come from `pkg-config`. This fixes
663
+ # compile failures caused when `pkg-config` returns CommandLineTools
664
+ # paths instead of Xcode paths.
665
+ export CMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}:${cmake_os_sysroot}/usr"
666
+
667
cmark_cmake_options=(
668
-DCMAKE_C_FLAGS="$(cmark_c_flags ${host})"
669
-DCMAKE_CXX_FLAGS="$(cmark_c_flags ${host})"
0 commit comments