Install CMake files to lib/cmake/Ceres

This is the right thing to do since the CMake files contain target
specific information - share is only for target-independent files.
Without this patch, the CMake files will collide on distributions
that allow to install for multiple targets in parallel (e. g. on
Exherbo).

Change-Id: Iac17af63b9f9b25d0ca400c77c2b2e0e8a51196f
This commit is contained in:
Niels Ole Salscheider
2016-01-08 14:35:05 +01:00
parent 1f20b72afd
commit cb467d83fe
+1 -1
View File
@@ -760,7 +760,7 @@ configure_file("${CMAKE_SOURCE_DIR}/cmake/CeresConfigVersion.cmake.in"
if (WIN32)
set(RELATIVE_CMAKECONFIG_INSTALL_DIR CMake)
else ()
set(RELATIVE_CMAKECONFIG_INSTALL_DIR share/Ceres)
set(RELATIVE_CMAKECONFIG_INSTALL_DIR lib/cmake/Ceres)
endif ()
# This "exports" for installation all targets which have been put into the