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 16c9c00 commit c71ed97Copy full SHA for c71ed97
utils/build-script-impl
@@ -584,6 +584,12 @@ function set_build_options_for_host() {
584
585
cmake_os_sysroot="$(xcrun --sdk ${platform} --show-sdk-path)"
586
587
+ # Give the SDK sysroot higher priority in calls to CMake `find_*`
588
+ # functions, over paths that may come from `pkg-config`. This fixes
589
+ # compile failures caused when `pkg-config` returns CommandLineTools
590
+ # paths instead of Xcode paths.
591
+ export CMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}:${cmake_os_sysroot}/usr"
592
+
593
cmark_cmake_options=(
594
-DCMAKE_C_FLAGS="$(cmark_c_flags ${host})"
595
-DCMAKE_CXX_FLAGS="$(cmark_c_flags ${host})"
0 commit comments