[CMake] array_ops.h is generated by tf_cc_ops
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 18 Jul 2019 00:27:05 +0000 (09:27 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 18 Jul 2019 00:27:05 +0000 (09:27 +0900)
Add tf_cc_ops in the dependency lists.

Change-Id: Ic491e94d433e0e3ec274cbcf2c15ca343da8cd00
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
tensorflow/contrib/cmake/tf_core_cpu.cmake

index 87a9f873a45027561c0044a116234a99e3361812..2a46bf659d94e24e2f5a9cb656a89c7e242f9876 100644 (file)
@@ -92,6 +92,6 @@ if (tensorflow_ENABLE_GPU)
 endif()
 
 add_library(tf_core_cpu OBJECT ${tf_core_cpu_srcs})
-add_dependencies(tf_core_cpu tf_core_framework tf_python_ops array_ops_gen_python)
-# Added tf_python_ops generating some files first to avoid:
+add_dependencies(tf_core_cpu tf_core_framework tf_python_ops tf_cc_ops)
+# Added tf_python_ops & tf_cc_ops generating some files first to avoid:
 # tensorflow/core/grappler/optimizers/data/vectorization/cwise_op_vectorizer.cc:18:10: fatal error: tensorflow/cc/ops/array_ops.h: No such file or directory