Skip to content

Commit acbc911

Browse files
committed
Merge branch 'v2.9.0' into system-protobuf
2 parents 3a1aaf9 + a87d17c commit acbc911

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

tensorflow_cc/CMakeLists.txt

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,14 @@ install(
9191
REGEX ".*Eigen.*"
9292
)
9393
install(
94-
FILES "${CMAKE_CURRENT_BINARY_DIR}/tensorflow/bazel-bin/tensorflow/libtensorflow_cc.so"
94+
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/tensorflow/bazel-bin/tensorflow/"
9595
DESTINATION lib
96-
RENAME libtensorflow_cc.so.${PROJECT_VERSION_MAJOR}
97-
OPTIONAL
96+
FILES_MATCHING PATTERN "libtensorflow_cc.so*"
9897
)
9998
install(
100-
FILES "${CMAKE_CURRENT_BINARY_DIR}/tensorflow/bazel-bin/bin/tensorflow/libtensorflow_cc.so"
99+
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/tensorflow/bazel-bin/bin/tensorflow/"
101100
DESTINATION lib
102-
RENAME libtensorflow_cc.so.${PROJECT_VERSION_MAJOR}
103-
OPTIONAL
104-
)
105-
# Make versioned symlinks to the library
106-
install(CODE "execute_process( \
107-
COMMAND ${CMAKE_COMMAND} -E create_symlink \
108-
libtensorflow_cc.so.${PROJECT_VERSION_MAJOR} \
109-
${CMAKE_INSTALL_PREFIX}/lib/libtensorflow_cc.so \
110-
)"
101+
FILES_MATCHING PATTERN "libtensorflow_cc.so*"
111102
)
112103

113104
# --------------------------

0 commit comments

Comments
 (0)