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 @@ -584,10 +584,15 @@ function set_build_options_for_host() {
584
584
585
585
cmake_os_sysroot=" $( xcrun --sdk ${platform} --show-sdk-path) "
586
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.
587
+ # Customize the CMake `find_*` search paths to search the SDK
588
+ # sysroot before searching `pkg-config` paths. This prevents compile
589
+ # failures caused when `pkg-config` returns CommandLineTools paths
590
+ # instead of Xcode paths.
591
+ #
592
+ # These search paths can be user customized either by setting the
593
+ # `CMAKE_PREFIX_PATH` environment variable, or by setting the same
594
+ # CMake variable via the command line (`-DCMAKE_PREFIX_PATH`).
595
+ # See https://cmake.org/cmake/help/latest/command/find_path.html
591
596
export CMAKE_PREFIX_PATH=" ${CMAKE_PREFIX_PATH} :${cmake_os_sysroot} /usr"
592
597
593
598
cmark_cmake_options=(
You can’t perform that action at this time.
0 commit comments