diff options
Diffstat (limited to 'tensorflow/contrib/cmake/tf_stream_executor.cmake')
-rw-r--r-- | tensorflow/contrib/cmake/tf_stream_executor.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/contrib/cmake/tf_stream_executor.cmake b/tensorflow/contrib/cmake/tf_stream_executor.cmake index 3d84f1ebb9..8d95f0d3e8 100644 --- a/tensorflow/contrib/cmake/tf_stream_executor.cmake +++ b/tensorflow/contrib/cmake/tf_stream_executor.cmake @@ -74,6 +74,9 @@ endif() #) #list(REMOVE_ITEM tf_stream_executor_srcs ${tf_stream_executor_test_srcs}) +if (NOT WIN32) + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lgomp") +endif (NOT WIN32) add_library(tf_stream_executor OBJECT ${tf_stream_executor_srcs}) add_dependencies(tf_stream_executor |