Skip to content

Commit 8019a9b

Browse files
committed
Properly rename library instead of occasionally creating a subfolder
1 parent 16ef468 commit 8019a9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tensorflow_cc/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,14 @@ endif()
226226
if(TENSORFLOW_SHARED)
227227
install(
228228
FILES "${CMAKE_CURRENT_BINARY_DIR}/tensorflow/bazel-bin/tensorflow/libtensorflow_cc.so"
229-
DESTINATION lib/libtensorflow_cc.so.${PROJECT_VERSION_MAJOR}
229+
DESTINATION lib
230+
RENAME libtensorflow_cc.so.${PROJECT_VERSION_MAJOR}
230231
OPTIONAL
231232
)
232233
install(
233234
FILES "${CMAKE_CURRENT_BINARY_DIR}/tensorflow/bazel-bin/bin/tensorflow/libtensorflow_cc.so"
234-
DESTINATION lib/libtensorflow_cc.so.${PROJECT_VERSION_MAJOR}
235+
DESTINATION lib
236+
RENAME libtensorflow_cc.so.${PROJECT_VERSION_MAJOR}
235237
OPTIONAL
236238
)
237239
# Make versioned symlinks to the library

0 commit comments

Comments
 (0)