@@ -41,28 +41,34 @@ macro(check_update_submodule MODULE_NAME)
41
41
endmacro ()
42
42
43
43
# ########################## include third_party ###############################
44
-
45
- check_update_submodule (gflags )
44
+ if (NOT paddle_submodule )
45
+ check_update_submodule (gflags )
46
+ check_update_submodule (glog )
47
+ endif ()
46
48
include (external/gflags ) # gflags
47
-
48
- check_update_submodule (glog )
49
49
include (external/glog ) # glog
50
50
51
51
list (APPEND third_party_deps extern_gflags extern_glog )
52
52
if (NOT ON_INFER )
53
- check_update_submodule (pybind )
53
+ if (NOT paddle_submodule )
54
+ check_update_submodule (pybind )
55
+ endif ()
54
56
include (external/pybind11 ) # pybind
55
57
list (APPEND third_party_deps extern_pybind )
56
58
endif ()
57
59
58
60
if (WITH_TESTING )
59
- check_update_submodule (gtest )
61
+ if (NOT paddle_submodule )
62
+ check_update_submodule (gtest )
63
+ endif ()
60
64
include (external/gtest ) # gtest
61
65
list (APPEND third_party_deps extern_gtest )
62
66
endif ()
63
67
64
68
if (WITH_MKL AND NOT WITH_ARM )
65
- check_update_submodule (onednn )
69
+ if (NOT paddle_submodule )
70
+ check_update_submodule (onednn )
71
+ endif ()
66
72
include (external/onednn ) # onednn
67
73
list (APPEND third_party_deps extern_onednn )
68
74
endif ()
0 commit comments