Skip to content

Commit 412cbb9

Browse files
committed
set shared library prefix earlier
1 parent 72004be commit 412cbb9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ find_package(Threads REQUIRED)
255255
# TODO: When this is removed, also remove the
256256
# `target_link_directories` call down in src/CMakeLists.txt, as it
257257
# will no longer be needed.
258+
if (WIN32)
259+
set(CMAKE_SHARED_LIBRARY_PREFIX "lib")
260+
endif()
261+
258262
set(viam_rust_utils_file ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}viam_rust_utils${CMAKE_STATIC_LIBRARY_SUFFIX})
259263

260264
file(GLOB viam_rust_utils_files ${PROJECT_SOURCE_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}viam_rust_utils*${CMAKE_STATIC_LIBRARY_SUFFIX})
@@ -295,7 +299,7 @@ elseif(NOT WIN32 OR rust_utils_supported_windows_arch) # TODO(RSDK-10366): Curre
295299
set(shared_library_prefix "lib")
296300
endif()
297301
message(WARNING "shared library prefix is ${CMAKE_SHARED_LIBRARY_PREFIX}")
298-
message(WARNING "trying to download https://github.com/viamrobotics/rust-utils/releases/latest/download/libviam_rust_utils-${lvru_system_name}_${lvru_system_processor}${CMAKE_STATIC_LIBRARY_SUFFIX}")
302+
message(WARNING "trying to download https://github.com/viamrobotics/rust-utils/releases/latest/download/${CMAKE_SHARED_LIBRARY_PREFIX}viam_rust_utils-${lvru_system_name}_${lvru_system_processor}${CMAKE_STATIC_LIBRARY_SUFFIX}")
299303

300304
file(
301305
DOWNLOAD

0 commit comments

Comments
 (0)