1 plplot forgets about install prefix while searching for self
3 There's a mess in cmake infrastructure if CMAKE_INSTALL_FOO_DIR is
4 relative or not. Trying to fix it.
6 --- plplot-5.13.0/cmake/modules/instdirs.cmake.~1~ 2017-08-26 05:43:25.000000000 +0000
7 +++ plplot-5.13.0/cmake/modules/instdirs.cmake 2018-09-07 18:45:27.925109366 +0000
9 # locations below (without the CMAKE_INSTALL prefix) that are directly
10 # used for installations.
12 +INCLUDE(GNUInstallDirs)
14 set(INSTALL_LOCATION_VARIABLES_LIST)
16 CMAKE_INSTALL_EXEC_PREFIX
21 - ${CMAKE_INSTALL_DATADIR}/${PACKAGE}${PLPLOT_VERSION}
22 + ${CMAKE_INSTALL_FULL_DATADIR}/${PACKAGE}${PLPLOT_VERSION}
23 CACHE PATH "PLplot install location for architecture-independent data"
25 list(APPEND INSTALL_LOCATION_VARIABLES_LIST DATA_DIR)
29 - ${CMAKE_INSTALL_LIBDIR}
30 + ${CMAKE_INSTALL_FULL_LIBDIR}
31 CACHE PATH "PLplot install location for object code libraries"
33 list(APPEND INSTALL_LOCATION_VARIABLES_LIST LIB_DIR)
37 - ${CMAKE_INSTALL_INCLUDEDIR}/${PACKAGE}
38 + ${CMAKE_INSTALL_FULL_INCLUDEDIR}/${PACKAGE}
39 CACHE PATH "PLplot install location for C header files"
41 list(APPEND INSTALL_LOCATION_VARIABLES_LIST INCLUDE_DIR)
45 - ${CMAKE_INSTALL_BINDIR}
46 + ${CMAKE_INSTALL_FULL_BINDIR}
47 CACHE PATH "PLplot install location for user executables"
49 list(APPEND INSTALL_LOCATION_VARIABLES_LIST BIN_DIR)
53 - ${CMAKE_INSTALL_LIBDIR}/${PACKAGE}${PLPLOT_VERSION}/drivers
54 + ${CMAKE_INSTALL_FULL_LIBDIR}/${PACKAGE}${PLPLOT_VERSION}/drivers
55 CACHE PATH "PLplot install location for dynamically loaded devices"
57 list(APPEND INSTALL_LOCATION_VARIABLES_LIST DRV_DIR)
61 - ${CMAKE_INSTALL_DATADIR}/doc/${PACKAGE}
62 + ${CMAKE_INSTALL_FULL_DATADIR}/doc/${PACKAGE}
63 CACHE PATH "PLplot install location for (architecture-independent) documentation files"
65 list(APPEND INSTALL_LOCATION_VARIABLES_LIST DOC_DIR)
69 - ${CMAKE_INSTALL_INFODIR}
70 + ${CMAKE_INSTALL_FULL_INFODIR}
71 CACHE PATH "PLplot install location for (architecture-independent) info files"
73 list(APPEND INSTALL_LOCATION_VARIABLES_LIST INFO_DIR)
77 - ${CMAKE_INSTALL_MANDIR}
78 + ${CMAKE_INSTALL_FULL_MANDIR}
79 CACHE PATH "PLplot install location for (architecture-independent) man files"
81 list(APPEND INSTALL_LOCATION_VARIABLES_LIST MAN_DIR)