Exclude test sources from stream executor builds. (#20423)
authorMichael Case <mikecase@google.com>
Fri, 29 Jun 2018 17:19:06 +0000 (10:19 -0700)
committerGunhan Gulsoy <gunan@google.com>
Fri, 29 Jun 2018 17:19:06 +0000 (10:19 -0700)
PiperOrigin-RevId: 202423156

tensorflow/contrib/cmake/tf_stream_executor.cmake

index 9a37b68..2f70e59 100644 (file)
@@ -76,11 +76,11 @@ if (tensorflow_ENABLE_GPU)
     list(APPEND tf_stream_executor_srcs ${tf_stream_executor_gpu_srcs})
 endif()
 
-#file(GLOB_RECURSE tf_stream_executor_test_srcs
-#    "${tensorflow_source_dir}/tensorflow/stream_executor/*_test.cc"
-#    "${tensorflow_source_dir}/tensorflow/stream_executor/*_test.h"
-#)
-#list(REMOVE_ITEM tf_stream_executor_srcs ${tf_stream_executor_test_srcs})
+file(GLOB_RECURSE tf_stream_executor_test_srcs
+    "${tensorflow_source_dir}/tensorflow/stream_executor/*test.cc"
+    "${tensorflow_source_dir}/tensorflow/stream_executor/lib/*test.h"
+)
+list(REMOVE_ITEM tf_stream_executor_srcs ${tf_stream_executor_test_srcs})
 
 if (NOT WIN32)
   set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lgomp")