# GNUInstallDirs variable for license directory and CMake config files

**URL:** https://discourse.cmake.org/t/gnuinstalldirs-variable-for-license-directory-and-cmake-config-files/5998
**Category:** Development
**Created:** [July 4, 2022, 11:00pm UTC](https://discourse.cmake.org/t/gnuinstalldirs-variable-for-license-directory-and-cmake-config-files/5998 "2022-07-04T23:00:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cglf](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/cdc98d/32.png) [@cglf](https://discourse.cmake.org/u/cglf)
#### Post date: [July 4, 2022, 11:00pm UTC](https://discourse.cmake.org/t/gnuinstalldirs-variable-for-license-directory-and-cmake-config-files/5998/1 "2022-07-04T23:00:57Z")

</div>

I’ve noticed that VTK installs licenses to `${CMAKE_INSTALL_DATADIR}/licenses/VTK`. Is there any plan to provide `${CMAKE_INSTALL_DATADIR}/licenses/${PROJECT_NAME}` as default install location for licenses in GNUInstallDirs? Should I default to installing my project’s licenses to `${CMAKE_INSTALL_DATADIR}/licenses/${PROJECT_NAME}`?

Similarly, most library projects install their CMake config files to `${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}`, but not all. Is there any plan to add a variable to GNUInstallDirs to supply `${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}` as the default install location for CMake package config files?
