Skip to content

Commit 11a4fbf

Browse files
committed
Install CMake package to DATADIR (share)
1 parent c58553f commit 11a4fbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake-init/templates/common/cmake/install-rules.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ write_basic_package_version_file(
4949

5050
# Allow package maintainers to freely override the path for the configs
5151
set(
52-
%(name)s_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/${package}"
53-
CACHE STRING "CMake package config location relative to the install prefix"
52+
%(name)s_INSTALL_CMAKEDIR "${CMAKE_INSTALL_DATADIR}/${package}"
53+
CACHE PATH "CMake package config location relative to the install prefix"
5454
)
5555
mark_as_advanced(%(name)s_INSTALL_CMAKEDIR)
5656

0 commit comments

Comments
 (0)