CeresConfig.cmake (and similar files) will be installed in "${CMAKE_INSTALL_PREFIX}/cmake/Ceres" after make install
Change-Id: I724e446a01f60de56714f2f63b161d0cfd1b8fd7
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c2443ef..7518676 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -712,13 +712,11 @@
ADD_CUSTOM_TARGET(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}/cmake/uninstall.cmake)
-# Set up install directories. INCLUDE_INSTALL_DIR and LIB_INSTALL_DIR
-# must not be absolute paths.
-SET(LIB_INSTALL_DIR_SUFFIX "" CACHE
- STRING "The directories where to install libraries to")
-SET(LIB_INSTALL_DIR lib${LIB_INSTALL_DIR_SUFFIX} )
-SET(CMAKECONFIG_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/Ceres)
+# Set up install directories. INCLUDE_INSTALL_DIR, LIB_INSTALL_DIR and
+# CMAKECONFIG_INSTALL_DIR must not be absolute paths.
SET(INCLUDE_INSTALL_DIR include)
+SET(LIB_INSTALL_DIR lib)
+SET(CMAKECONFIG_INSTALL_DIR share/Ceres)
# This "exports" all targets which have been put into the export set
# "CeresExport". This means that CMake generates a file with the given