We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dadc97 commit 021326cCopy full SHA for 021326c
pinctrl/CMakeLists.txt
@@ -1,4 +1,5 @@
1
cmake_minimum_required(VERSION 3.10)
2
+include(GNUInstallDirs)
3
4
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -pedantic")
5
@@ -8,4 +9,4 @@ project(pinctrl)
8
9
#add executables
10
add_executable(pinctrl pinctrl.c gpiolib.c util.c gpiochip_bcm2835.c)
11
install(TARGETS pinctrl RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
-install(FILES pinctrl-completion.bash RENAME pinctrl DESTINATION "share/bash-completion/completions")
12
+install(FILES pinctrl-completion.bash RENAME pinctrl DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/bash-completion/completions")
0 commit comments