File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ share/python-wheels/
33
33
.installed.cfg
34
34
* .egg
35
35
MANIFEST
36
+ /.deps /
36
37
37
38
# PyInstaller
38
39
# Usually these files are written by a python script from a template
Original file line number Diff line number Diff line change @@ -166,7 +166,16 @@ if(NVCC_THREADS AND VLLM_GPU_LANG STREQUAL "CUDA")
166
166
list (APPEND VLLM_GPU_FLAGS "--threads=${NVCC_THREADS} " )
167
167
endif ()
168
168
169
+
170
+ #
171
+ # Use FetchContent for C++ dependencies that are compiled as part of vLLM's build process.
172
+ # Configure it to place files in vllm/.deps, in order to play nicely with sccache.
173
+ #
169
174
include (FetchContent)
175
+ get_filename_component (PROJECT_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR} " ABSOLUTE )
176
+ file (MAKE_DIRECTORY "${FETCHCONTENT_BASE_DIR} " )
177
+ set (FETCHCONTENT_BASE_DIR "${PROJECT_ROOT_DIR} /.deps" )
178
+ message (STATUS "FetchContent base directory: ${FETCHCONTENT_BASE_DIR} " )
170
179
171
180
#
172
181
# Define other extension targets
You can’t perform that action at this time.
0 commit comments