未验证 提交 ddfd8f60 编写于 作者: R risemeup1 提交者: GitHub

fix_ninja_error (#50067)

上级 7e56147d
...@@ -45,6 +45,9 @@ if(LINUX) ...@@ -45,6 +45,9 @@ if(LINUX)
CACHE BOOL "" FORCE) CACHE BOOL "" FORCE)
set(CMAKE_CUDA_FLAGS "--cudart shared") set(CMAKE_CUDA_FLAGS "--cudart shared")
enable_language(CUDA) enable_language(CUDA)
set(CMAKE_CUDA_COMPILER
"${CMAKE_SOURCE_DIR}/tools/nvcc_lazy"
CACHE FILEPATH "" FORCE)
execute_process( execute_process(
COMMAND "rm" "-rf" "${CMAKE_SOURCE_DIR}/tools/nvcc_lazy" COMMAND "rm" "-rf" "${CMAKE_SOURCE_DIR}/tools/nvcc_lazy"
COMMAND "chmod" "755" "${CMAKE_SOURCE_DIR}/tools/nvcc_lazy.sh" COMMAND "chmod" "755" "${CMAKE_SOURCE_DIR}/tools/nvcc_lazy.sh"
...@@ -54,7 +57,4 @@ if(LINUX) ...@@ -54,7 +57,4 @@ if(LINUX)
set(CUDA_NVCC_EXECUTABLE set(CUDA_NVCC_EXECUTABLE
"${CMAKE_SOURCE_DIR}/tools/nvcc_lazy" "${CMAKE_SOURCE_DIR}/tools/nvcc_lazy"
CACHE FILEPATH "" FORCE) CACHE FILEPATH "" FORCE)
set(CMAKE_CUDA_COMPILER
"${CMAKE_SOURCE_DIR}/tools/nvcc_lazy"
CACHE FILEPATH "" FORCE)
endif() endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册