Skip to content

Commit 3e447af

Browse files
committed
Try to fix udev error on linux builds
1 parent e55eb82 commit 3e447af

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmake/Uldaq.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ ExternalProject_Add(uldaq_external
5454
--disable-shared
5555

5656
BUILD_COMMAND make -j${NPROC}
57-
INSTALL_COMMAND make install
57+
# Install only from src/ to get the library and header.
58+
# The top-level install tries to write udev rules to /lib and run ldconfig,
59+
# both of which require root and are unnecessary for a static library build.
60+
INSTALL_COMMAND make -C src install
5861
BUILD_IN_SOURCE OFF
5962
BUILD_BYPRODUCTS "${ULDAQ_INSTALL_DIR}/lib/libuldaq.a"
6063
)

0 commit comments

Comments
 (0)