Commit 4677646
committed
fix(cmake): Correct macOS KEXT build using absolute SDK paths
The KEXT (PcmMsrDriver) build failed on macOS because it could not
find kernel headers like `<IOKit/IOLib.h>`. This was caused by CMake
incorrectly resolving include paths to `/System/Library/...` instead of
the correct path inside the macOS SDK.
This commit fixes the issue by localizing the solution to the KEXT's
`CMakeLists.txt`. It now dynamically detects the active macOS SDK path
using `xcrun` and uses it to construct absolute include paths for the
KEXT target only.
This ensures the KEXT can find its required kernel headers without
affecting other user-space targets that may depend on libraries from
standard locations like Homebrew.
Close: #9281 parent 1aa4339 commit 4677646
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
14 | 24 | | |
15 | 25 | | |
16 | | - | |
17 | | - | |
| 26 | + | |
| 27 | + | |
18 | 28 | | |
19 | 29 | | |
20 | 30 | | |
| |||
0 commit comments