@@ -56,31 +56,36 @@ set(dst_dir "${FLUID_INSTALL_DIR}/third_party/eigen3")
56
56
copy (eigen3_lib
57
57
SRCS ${EIGEN_INCLUDE_DIR} /Eigen/Core ${EIGEN_INCLUDE_DIR} /Eigen/src ${EIGEN_INCLUDE_DIR} /unsupported/Eigen
58
58
DSTS ${dst_dir} /Eigen ${dst_dir} /Eigen ${dst_dir} /unsupported
59
+ DEPS eigen3
59
60
)
60
61
61
62
set (dst_dir "${FLUID_INSTALL_DIR} /third_party/install/gflags" )
62
63
copy (gflags_lib
63
64
SRCS ${GFLAGS_INCLUDE_DIR} ${GFLAGS_LIBRARIES}
64
65
DSTS ${dst_dir} ${dst_dir} /lib
66
+ DEPS gflags
65
67
)
66
68
67
69
set (dst_dir "${FLUID_INSTALL_DIR} /third_party/install/glog" )
68
70
copy (glog_lib
69
71
SRCS ${GLOG_INCLUDE_DIR} ${GLOG_LIBRARIES}
70
72
DSTS ${dst_dir} ${dst_dir} /lib
73
+ DEPS glog
71
74
)
72
75
73
76
set (dst_dir "${FLUID_INSTALL_DIR} /third_party/boost/" )
74
77
copy (boost_lib
75
78
SRCS ${BOOST_INCLUDE_DIR} /boost
76
79
DSTS ${dst_dir}
80
+ DEPS boost
77
81
)
78
82
79
83
if (NOT PROTOBUF_FOUND )
80
84
set (dst_dir "${FLUID_INSTALL_DIR} /third_party/install/protobuf" )
81
85
copy (protobuf_lib
82
86
SRCS ${PROTOBUF_INCLUDE_DIR} ${PROTOBUF_LIBRARY}
83
87
DSTS ${dst_dir} ${dst_dir} /lib
88
+ DEPS extern_protobuf
84
89
)
85
90
endif ()
86
91
@@ -89,12 +94,14 @@ if(NOT CBLAS_FOUND)
89
94
copy (openblas_lib
90
95
SRCS ${CBLAS_INSTALL_DIR} /lib ${CBLAS_INSTALL_DIR} /include
91
96
DSTS ${dst_dir} ${dst_dir}
97
+ DEPS extern_openblas
92
98
)
93
99
elseif (WITH_MKLML )
94
100
set (dst_dir "${FLUID_INSTALL_DIR} /third_party/install/mklml" )
95
101
copy (mklml_lib
96
102
SRCS ${MKLML_LIB} ${MKLML_IOMP_LIB} ${MKLML_INC_DIR}
97
103
DSTS ${dst_dir} /lib ${dst_dir} /lib ${dst_dir}
104
+ DEPS mklml
98
105
)
99
106
endif ()
100
107
@@ -103,24 +110,28 @@ if(WITH_MKLDNN)
103
110
copy (mkldnn_lib
104
111
SRCS ${MKLDNN_INC_DIR} ${MKLDNN_SHARED_LIB}
105
112
DSTS ${dst_dir} ${dst_dir} /lib
113
+ DEPS mkldnn
106
114
)
107
115
endif ()
108
116
109
117
if (NOT MOBILE_INFERENCE AND NOT RPI )
110
118
set (dst_dir "${FLUID_INSTALL_DIR} /third_party/install/snappy" )
111
119
copy (snappy_lib
112
120
SRCS ${SNAPPY_INCLUDE_DIR} ${SNAPPY_LIBRARIES}
113
- DSTS ${dst_dir} ${dst_dir} /lib )
121
+ DSTS ${dst_dir} ${dst_dir} /lib
122
+ DEPS snappy )
114
123
115
124
set (dst_dir "${FLUID_INSTALL_DIR} /third_party/install/snappystream" )
116
125
copy (snappystream_lib
117
126
SRCS ${SNAPPYSTREAM_INCLUDE_DIR} ${SNAPPYSTREAM_LIBRARIES}
118
- DSTS ${dst_dir} ${dst_dir} /lib )
127
+ DSTS ${dst_dir} ${dst_dir} /lib
128
+ DEPS snappystream )
119
129
120
130
set (dst_dir "${FLUID_INSTALL_DIR} /third_party/install/zlib" )
121
131
copy (zlib_lib
122
132
SRCS ${ZLIB_INCLUDE_DIR} ${ZLIB_LIBRARIES}
123
- DSTS ${dst_dir} ${dst_dir} /lib )
133
+ DSTS ${dst_dir} ${dst_dir} /lib
134
+ DEPS zlib )
124
135
endif ()
125
136
126
137
# paddle fluid module
0 commit comments