Skip to content

Commit

Permalink
build/cmake: improve whitespace handling in FindUdev
Browse files Browse the repository at this point in the history
  • Loading branch information
gschintgen committed Aug 15, 2024
1 parent a28e1c9 commit 490bd59
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmake/FindUdev.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ IF (NOT WIN32)
if (UDEV_FOUND)
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE}
--variable=udevdir udev
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_VARIABLE UDEV_RULES_INSTALL_DIR)

string(REGEX REPLACE "[ \t\n]+" "" UDEV_RULES_INSTALL_DIR
"${UDEV_RULES_INSTALL_DIR}")

set(UDEV_RULES_INSTALL_DIR "${UDEV_RULES_INSTALL_DIR}/rules.d")

mark_as_advanced(UDEV_RULES_INSTALL_DIR)
Expand Down

0 comments on commit 490bd59

Please sign in to comment.