Skip to content

Commit a87d17c

Browse files
committed
Fix symlink names
1 parent 78b2ac4 commit a87d17c

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

tensorflow_cc/CMakeLists.txt

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,14 @@ install(
8383
REGEX ".*Eigen.*"
8484
)
8585
install(
86-
FILES "${CMAKE_CURRENT_BINARY_DIR}/tensorflow/bazel-bin/tensorflow/libtensorflow_cc.so"
86+
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/tensorflow/bazel-bin/tensorflow/"
8787
DESTINATION lib
88-
RENAME libtensorflow_cc.so.${PROJECT_VERSION_MAJOR}
89-
OPTIONAL
88+
FILES_MATCHING PATTERN "libtensorflow_cc.so*"
9089
)
9190
install(
92-
FILES "${CMAKE_CURRENT_BINARY_DIR}/tensorflow/bazel-bin/bin/tensorflow/libtensorflow_cc.so"
91+
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/tensorflow/bazel-bin/bin/tensorflow/"
9392
DESTINATION lib
94-
RENAME libtensorflow_cc.so.${PROJECT_VERSION_MAJOR}
95-
OPTIONAL
96-
)
97-
# Make versioned symlinks to the library
98-
install(CODE "execute_process( \
99-
COMMAND ${CMAKE_COMMAND} -E create_symlink \
100-
libtensorflow_cc.so.${PROJECT_VERSION_MAJOR} \
101-
${CMAKE_INSTALL_PREFIX}/lib/libtensorflow_cc.so \
102-
)"
93+
FILES_MATCHING PATTERN "libtensorflow_cc.so*"
10394
)
10495

10596
# --------------------------

0 commit comments

Comments
 (0)