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)
28
28
include (simd )
29
29
30
30
###################### Configurations ############################
31
- option (WITH_DSO "Compile PaddlePaddle with dynamic linked libraries" ON )
31
+ option (WITH_DSO "Compile PaddlePaddle with dynamic linked libraries" OFF )
32
32
option (WITH_GPU "Compile PaddlePaddle with gpu" ${CUDA_FOUND} )
33
33
option (WITH_DOUBLE "Compile PaddlePaddle with double precision, otherwise use single precision" OFF )
34
34
option (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)
120
120
target_link_libraries (${TARGET_NAME} rt )
121
121
endif ()
122
122
endif ()
123
+
124
+ if (NOT WITH_DSO )
125
+ target_link_libraries (${TARGET_NAME} ${WARPCTC_LIBRARIES} )
126
+ endif ()
127
+
123
128
add_dependencies (${TARGET_NAME} ${external_project_dependencies} )
124
129
endfunction ()
125
130
You can’t perform that action at this time.
0 commit comments