Skip to content

Commit f1c1e4f

Browse files
committed
shift to install FILES
1 parent 952702b commit f1c1e4f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

CMakeLists.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,13 +310,12 @@ if (NOT WIN32 OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") # build `SHARED` on
310310
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_LIBDIR}>"
311311
)
312312
set_property(TARGET viam_rust_utils PROPERTY IMPORTED_LOCATION ${viam_rust_utils_file})
313-
endif()
314313

315-
if (NOT BUILD_SHARED_LIBS) # installing seems to be necessary for tests to pass in CI
316-
install(
317-
IMPORTED_RUNTIME_ARTIFACTS viam_rust_utils
318-
LIBRARY COMPONENT viam-cpp-sdk_runtime
319-
)
314+
if (NOT BUILD_SHARED_LIBS) # installing seems to be necessary for tests to pass in CI
315+
install(
316+
FILES ${viam_rust_utils_file} DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT viam-cpp-sdk_runtime
317+
)
318+
endif()
320319
endif()
321320

322321
# Install the license file

0 commit comments

Comments
 (0)