File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ endif(USE_NNPACK)
204
204
205
205
add_subdirectory (proto )
206
206
207
- if (NOT MOBILE_INFERENCE )
207
+ if (NOT MOBILE_INFERENCE AND NOT WITH_FLUID_ONLY )
208
208
# "add_subdirectory(go)" should be placed after the following loine,
209
209
# because it depends on paddle/optimizer.
210
210
add_subdirectory (paddle/optimizer )
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ set(OPITMIZER_SRCS
7
7
sgd_optimizer.cc
8
8
)
9
9
10
- cc_library (paddle_optimizer STATIC SRCS ${OPITMIZER_SRCS} DEPS paddle_proto glog )
11
- cc_test (serialization_test SRCS serialization_test.cc DEPS paddle_proto )
12
- cc_test (parameter_optimizer_test SRCS parameter_optimizer_test.cc DEPS paddle_optimizer )
10
+ add_library (paddle_optimizer ${OPITMIZER_SRCS} )
11
+ target_link_libraries (paddle_optimizer paddle_proto glog )
12
+
13
+ if (WITH_TESTING )
14
+ add_unittest (serialization_test serialization_test.cc )
15
+ add_unittest (parameter_optimizer_test parameter_optimizer_test.cc )
16
+ endif ()
You can’t perform that action at this time.
0 commit comments