We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DATADIR
share
1 parent c58553f commit 11a4fbfCopy full SHA for 11a4fbf
cmake-init/templates/common/cmake/install-rules.cmake
@@ -49,8 +49,8 @@ write_basic_package_version_file(
49
50
# Allow package maintainers to freely override the path for the configs
51
set(
52
- %(name)s_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/${package}"
53
- CACHE STRING "CMake package config location relative to the install prefix"
+ %(name)s_INSTALL_CMAKEDIR "${CMAKE_INSTALL_DATADIR}/${package}"
+ CACHE PATH "CMake package config location relative to the install prefix"
54
)
55
mark_as_advanced(%(name)s_INSTALL_CMAKEDIR)
56
0 commit comments