mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-04-24 16:39:45 +00:00
Add GitHub data: filename sanitization (#640)
This commit is contained in:
19
github-data/pull_requests/279 - Fighting with cmake.md
Normal file
19
github-data/pull_requests/279 - Fighting with cmake.md
Normal file
@@ -0,0 +1,19 @@
|
||||
### 🔀 [#279](https://github.com/ikawrakow/ik_llama.cpp/pull/279) - Fighting with cmake
|
||||
|
||||
| **Author** | `ikawrakow` |
|
||||
| :--- | :--- |
|
||||
| **State** | ❌ **Closed** |
|
||||
| **Created** | 2025-03-22 |
|
||||
| **Updated** | 2025-03-22 |
|
||||
|
||||
---
|
||||
|
||||
#### Description
|
||||
|
||||
`cmake` has the unpleasant habit of using "response" files to put stuff such as list of include directories. But that confuses `vim` (or at least it does the way I have set it up) when I edit CUDA files. I had tricked `cmake` into not using "response" files, but instead adding all `nvcc` command line options into `compile_commands.json`. But at some point that stopped working, I guess after a system update. I hate it, so this PR restores the desired behavior. I had to add
|
||||
```
|
||||
set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_INCLUDES 0)
|
||||
set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_LIBRARIES 0)
|
||||
set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_OBJECTS 0)
|
||||
```
|
||||
another time at the end of the block related to CUDA in `CMakeLists.txt`, else something was making my request at the beginning of the CUDA block to be ignored.
|
||||
Reference in New Issue
Block a user