Skip to content

Commit 7afa451

Browse files
committed
shared again
1 parent a9b2337 commit 7afa451

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ else()
294294
endif()
295295

296296
if (NOT WIN32) # build `SHARED` on unix-based systems
297-
add_library(viam_rust_utils STATIC IMPORTED)
297+
add_library(viam_rust_utils SHARED IMPORTED)
298298
target_link_directories(viam_rust_utils
299299
INTERFACE
300300
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>"
@@ -313,12 +313,12 @@ elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") # build `STATIC` for windows
313313
endif()
314314

315315

316-
#if (NOT WIN32) # installing seems to be necessary for tests to pass in CI
317-
#install(
318-
#IMPORTED_RUNTIME_ARTIFACTS viam_rust_utils
319-
#LIBRARY COMPONENT viam-cpp-sdk_runtime
320-
#)
321-
#endif()
316+
if (NOT WIN32) # installing seems to be necessary for tests to pass in CI
317+
install(
318+
IMPORTED_RUNTIME_ARTIFACTS viam_rust_utils
319+
LIBRARY COMPONENT viam-cpp-sdk_runtime
320+
)
321+
endif()
322322

323323
# Install the license file
324324
install(FILES

0 commit comments

Comments
 (0)