Skip to content

Commit

Permalink
fix mmdeploy_pplnn_net build error when target device is cpu (open-mm…
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhan028 authored Aug 15, 2022
1 parent 127125f commit 91a060f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csrc/mmdeploy/net/ppl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ if (PPLNN_USE_CUDA AND ("cuda" IN_LIST MMDEPLOY_TARGET_DEVICES))
target_compile_definitions(${PROJECT_NAME} PRIVATE -DPPL_NN_HAS_CUDA=1)
target_include_directories(${PROJECT_NAME} PUBLIC ${CUDA_TOOLKIT_ROOT_DIR}/include)
target_link_directories(${PROJECT_NAME} PUBLIC ${CUDA_TOOLKIT_ROOT_DIR}/lib64)
target_link_libraries(${PROJECT_NAME} PRIVATE nvrtc)
endif ()
target_link_libraries(${PROJECT_NAME}
PRIVATE ${PPLNN_LIBRARIES} nvrtc)
PRIVATE ${PPLNN_LIBRARIES})
add_library(mmdeploy::pplnn_net ALIAS ${PROJECT_NAME})

0 comments on commit 91a060f

Please sign in to comment.