File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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" )
4346else ()
@@ -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-
262261set (viam_rust_utils_file ${CMAKE_CURRENT_BINARY_DIR} /${CMAKE_SHARED_LIBRARY_PREFIX} viam_rust_utils${CMAKE_STATIC_LIBRARY_SUFFIX} )
263262
264263file (GLOB viam_rust_utils_files ${PROJECT_SOURCE_DIR} /${CMAKE_SHARED_LIBRARY_PREFIX} viam_rust_utils*${CMAKE_STATIC_LIBRARY_SUFFIX} )
You can’t perform that action at this time.
0 commit comments