Commit c8bb6c8
committed
cmake: fix setup_compiler by wrapping Compiler.cmake in a function
CMakeLists.txt calls setup_compiler(TARGET) after including
cmake/Compiler.cmake, but Compiler.cmake only contained flat cmake
code using ${PROJECT_NAME} directly — the setup_compiler function
was never defined, causing:
CMake Error: Unknown CMake command "setup_compiler"
Fix: wrap the content of cmake/Compiler.cmake in
function(setup_compiler TARGET) and replace ${PROJECT_NAME}
references with ${TARGET} so the include/call pattern works
correctly.1 parent e75e7db commit c8bb6c8
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
0 commit comments