diff options
author | 2021-09-15 14:25:40 +0100 | |
---|---|---|
committer | 2021-09-17 20:25:49 +0000 | |
commit | e3cf4d0cf3b83f912474220ff52dfedc5a432084 (patch) | |
tree | 5766e961c148fec0af9063e9adb190b0d82052a2 /src/vpp | |
parent | 8b997772633f33528ca4f0b702e93dcfc1c24395 (diff) |
build: use GNUInstallDirs install destinations
So as to be compliant with distribution layouts, as recommend by:
https://cmake.org/cmake/help/latest/command/install.html#installing-files
Type: make
Change-Id: Ic46ace4f26aab1aa4902cbd013c40a92c480680d
Signed-off-by: Nick Brown <nickbroon@gmail.com>
Diffstat (limited to 'src/vpp')
-rw-r--r-- | src/vpp/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vpp/CMakeLists.txt b/src/vpp/CMakeLists.txt index 3b466599ffa..e15037cccb7 100644 --- a/src/vpp/CMakeLists.txt +++ b/src/vpp/CMakeLists.txt @@ -51,7 +51,7 @@ foreach(file ${VPP_API_FILES}) FILES ${CMAKE_CURRENT_BINARY_DIR}/${file}.h ${CMAKE_CURRENT_BINARY_DIR}/${file}_enum.h ${CMAKE_CURRENT_BINARY_DIR}/${file}_types.h - DESTINATION include/vpp/${dir} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/vpp/${dir} COMPONENT vpp-dev ) endforeach() @@ -133,8 +133,8 @@ add_vpp_library(vppmem_preload LINK_LIBRARIES vppinfra ) -install(FILES conf/startup.conf DESTINATION etc/vpp COMPONENT vpp) -install(FILES conf/80-vpp.conf DESTINATION etc/sysctl.d COMPONENT vpp) +install(FILES conf/startup.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/vpp COMPONENT vpp) +install(FILES conf/80-vpp.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/sysctl.d COMPONENT vpp) ############################################################################## # VAT2 plugins |