how to

Ignoring CMAKE_OSX_SYSROOT value

Jul 31, 2024
langscmake
1 Minutes
110 Words

Ignoring CMAKE_OSX_SYSROOT value

??? info “Problem environment”

1
- author: Julyfun MacOS14.5 M1
2
- edited date: 2024-07-31
3
- expected environment: Darwin 192.168.124.13 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103 arm64

Details of the problem / Steps to reproduce the error

cli cmake an old project warns:

1
CMake Warning at /opt/homebrew/Cellar/cmake/3.29.2/share/cmake/Modules/Platform/Darwin-Initialize.cmake:308 (message):
2
Ignoring CMAKE_OSX_SYSROOT value:
3
4
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk
5
6
because the directory does not exist.
7
Call Stack (most recent call first):
8
/opt/homebrew/Cellar/cmake/3.29.2/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake:34 (include)
9
CMakeLists.txt:2 (project)

and build failed.


Answer 1

??? info “Answer environment”

1
- author: As in the problem
2
- edited date: As in the problem
3
- verified environment: As in the problem
4
- assume readers know: _No assumption_

rm -r * in your build cache folder. Done.

Article title:Ignoring CMAKE_OSX_SYSROOT value
Article author:Julyfun
Release time:Jul 31, 2024
Copyright 2025
Sitemap