Skip to content

Commit b3a339a

Browse files
committed
rust-utils always static
1 parent d43865b commit b3a339a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,16 +293,16 @@ else()
293293
message(WARNING "Currently running on Windows with no rust-utils file. Module code should work as expected, but client code may fail unexpectedly.")
294294
endif()
295295

296-
if (NOT WIN32) # build `SHARED` on unix-based systems
297-
add_library(viam_rust_utils SHARED IMPORTED)
298-
target_link_directories(viam_rust_utils
299-
INTERFACE
300-
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>"
301-
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_LIBDIR}>"
302-
)
303-
set_property(TARGET viam_rust_utils PROPERTY IMPORTED_LOCATION ${viam_rust_utils_file})
304-
305-
elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") # build `STATIC` for windows
296+
if (NOT WIN32 OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") # build `SHARED` on unix-based systems
297+
#add_library(viam_rust_utils SHARED IMPORTED)
298+
#target_link_directories(viam_rust_utils
299+
#INTERFACE
300+
#"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>"
301+
#"$<INSTALL_INTERFACE:${CMAKE_INSTALL_LIBDIR}>"
302+
#)
303+
#set_property(TARGET viam_rust_utils PROPERTY IMPORTED_LOCATION ${viam_rust_utils_file})
304+
305+
#elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") # build `STATIC` for windows
306306
add_library(viam_rust_utils STATIC IMPORTED)
307307
target_link_directories(viam_rust_utils
308308
INTERFACE

0 commit comments

Comments
 (0)