diff --git a/backends/trtllm/CMakeLists.txt b/backends/trtllm/CMakeLists.txt index caed22c6..412be87d 100644 --- a/backends/trtllm/CMakeLists.txt +++ b/backends/trtllm/CMakeLists.txt @@ -9,11 +9,10 @@ if (NOT DEFINED CMAKE_CXX_COMPILER_LAUNCHER) set(CMAKE_CUDA_COMPILER_LAUNCHER ${CCACHE_EXECUTABLE}) endif () else () - find_program(CCACHE_EXECUTABLE ${CMAKE_CXX_COMPILER_LAUNCHER}) message(STATUS "Using user specified cmake cxx compiler launcher: ${CMAKE_CXX_COMPILER_LAUNCHER}") - set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_EXECUTABLE}) - set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_EXECUTABLE}) - set(CMAKE_CUDA_COMPILER_LAUNCHER ${CCACHE_EXECUTABLE}) + set(CMAKE_C_COMPILER_LAUNCHER ${CMAKE_CXX_COMPILER_LAUNCHER}) + set(CMAKE_CXX_COMPILER_LAUNCHER ${CMAKE_CXX_COMPILER_LAUNCHER}) + set(CMAKE_CUDA_COMPILER_LAUNCHER ${CMAKE_CXX_COMPILER_LAUNCHER}) endif () if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")