File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ include(system)
2828include (simd)
2929
3030###################### Configurations ############################
31- option (WITH_DSO "Compile PaddlePaddle with dynamic linked libraries" ON )
31+ option (WITH_DSO "Compile PaddlePaddle with dynamic linked libraries" OFF )
3232option (WITH_GPU "Compile PaddlePaddle with gpu" ${CUDA_FOUND} )
3333option (WITH_DOUBLE "Compile PaddlePaddle with double precision, otherwise use single precision" OFF )
3434option (WITH_AVX "Compile PaddlePaddle with avx intrinsics" ${AVX_FOUND} )
Original file line number Diff line number Diff line change @@ -120,6 +120,11 @@ function(link_paddle_exe TARGET_NAME)
120120 target_link_libraries (${TARGET_NAME} rt)
121121 endif ()
122122 endif ()
123+
124+ if (NOT WITH_DSO)
125+ target_link_libraries (${TARGET_NAME} ${WARPCTC_LIBRARIES} )
126+ endif ()
127+
123128 add_dependencies (${TARGET_NAME} ${external_project_dependencies} )
124129endfunction ()
125130
You can’t perform that action at this time.
0 commit comments