Skip to content

Commit 73c5410

Browse files
committed
cleaner
1 parent 412cbb9 commit 73c5410

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ if (WIN32)
3838
# https://cmake.org/cmake/help/latest/policy/CMP0149.html
3939
cmake_minimum_required(VERSION 3.27 FATAL_ERROR)
4040

41+
# rust-utils always has a `lib` prefix
42+
set(CMAKE_SHARED_LIBRARY_PREFIX "lib")
43+
4144
# set boost compiler to avoid errors with boost log
4245
set(Boost_COMPILER "vc143")
4346
else()
@@ -255,10 +258,6 @@ find_package(Threads REQUIRED)
255258
# TODO: When this is removed, also remove the
256259
# `target_link_directories` call down in src/CMakeLists.txt, as it
257260
# will no longer be needed.
258-
if (WIN32)
259-
set(CMAKE_SHARED_LIBRARY_PREFIX "lib")
260-
endif()
261-
262261
set(viam_rust_utils_file ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}viam_rust_utils${CMAKE_STATIC_LIBRARY_SUFFIX})
263262

264263
file(GLOB viam_rust_utils_files ${PROJECT_SOURCE_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}viam_rust_utils*${CMAKE_STATIC_LIBRARY_SUFFIX})

0 commit comments

Comments
 (0)