cmake build static library dependency
Created by: dzhwinter
when there is a command in cc_library, we use it merge static library together.
cc_library(paddle_go_optimizer DEPS paddle_optimizer paddle_proto glog gflags)
it need dependencies pre-compiled.
we need to add static library dependency compiled command before it will be used in merge process.