Merge pull request #3564 from tumuyan/patch-1

fix MNN_SUPPORT_RENDER OFF
This commit is contained in:
jxt1234 2025-05-27 15:07:56 +08:00 committed by GitHub
commit c0dde12d89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -121,7 +121,9 @@ endif()
if(NOT MNN_SUPPORT_RENDER)
file(GLOB_RECURSE MNN_CUDA_RENDER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/execution/render/*)
list(REMOVE_ITEM MNN_CUDA_SRC ${MNN_CUDA_RENDER_SRC})
if(MNN_CUDA_RENDER_SRC AND MNN_CUDA_SRC)
list(REMOVE_ITEM MNN_CUDA_SRC ${MNN_CUDA_RENDER_SRC})
endif()
endif()
if(NOT MNN_LOW_MEMORY)