diff --git a/CMakeLists.txt b/CMakeLists.txt index e573ade67..1d858df0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,7 +180,7 @@ endif() # Codecs & icons paths # -set(SAIL_CODECS_PATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/sail/codecs") +set(SAIL_CODECS_PATH "${CMAKE_INSTALL_FULL_LIBDIR}/sail/codecs") if (WIN32) string(REPLACE "/" "\\\\" SAIL_CODECS_PATH "${SAIL_CODECS_PATH}") endif() @@ -313,9 +313,9 @@ message("* For example, if you configure with -DBUILD_SHARED_LIBS=OFF -DSA message("* the final value of SAIL_COMBINE_CODECS will be ON.") message("*") message("* Install prefix: ${CMAKE_INSTALL_PREFIX}") -message("* LIBDIR: ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") -message("* INCLUDEDIR: ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}") -message("* DATADIR: ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}") +message("* LIBDIR: ${CMAKE_INSTALL_FULL_LIBDIR}") +message("* INCLUDEDIR: ${CMAKE_INSTALL_FULL_INCLUDEDIR}") +message("* DATADIR: ${CMAKE_INSTALL_FULL_DATAROOTDIR}") message("*") message("* Enabled codecs: ${ENABLED_CODECS}") message("* Disabled codecs: ${DISABLED_CODECS}") diff --git a/src/bindings/c++/pkgconfig/libsail-c++.pc.in b/src/bindings/c++/pkgconfig/libsail-c++.pc.in index efbd3b180..489fb9664 100644 --- a/src/bindings/c++/pkgconfig/libsail-c++.pc.in +++ b/src/bindings/c++/pkgconfig/libsail-c++.pc.in @@ -1,7 +1,7 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=@CMAKE_INSTALL_PREFIX@ -libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ -includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/sail +libdir=${CMAKE_INSTALL_FULL_LIBDIR}@ +includedir=${CMAKE_INSTALL_FULL_INCLUDEDIR}@ Name: libsail-c++ Description: SAIL C++ client library diff --git a/src/libsail-common/pkgconfig/libsail-common.pc.in b/src/libsail-common/pkgconfig/libsail-common.pc.in index 0461bf0b6..979b931ba 100644 --- a/src/libsail-common/pkgconfig/libsail-common.pc.in +++ b/src/libsail-common/pkgconfig/libsail-common.pc.in @@ -1,7 +1,7 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=@CMAKE_INSTALL_PREFIX@ -libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ -includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/sail +libdir=${CMAKE_INSTALL_FULL_LIBDIR}@ +includedir=${CMAKE_INSTALL_FULL_INCLUDEDIR}@ Name: libsail-common Description: SAIL common client library diff --git a/src/libsail-manip/pkgconfig/libsail-manip.pc.in b/src/libsail-manip/pkgconfig/libsail-manip.pc.in index 582947b71..530ef0c73 100644 --- a/src/libsail-manip/pkgconfig/libsail-manip.pc.in +++ b/src/libsail-manip/pkgconfig/libsail-manip.pc.in @@ -1,7 +1,7 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=@CMAKE_INSTALL_PREFIX@ -libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ -includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/sail +libdir=${CMAKE_INSTALL_FULL_LIBDIR}@ +includedir=${CMAKE_INSTALL_FULL_INCLUDEDIR}@ Name: libsail-manip Description: SAIL image manipulation library diff --git a/src/libsail/pkgconfig/libsail.pc.in b/src/libsail/pkgconfig/libsail.pc.in index 3978e089a..ed1f37b14 100644 --- a/src/libsail/pkgconfig/libsail.pc.in +++ b/src/libsail/pkgconfig/libsail.pc.in @@ -1,7 +1,7 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=@CMAKE_INSTALL_PREFIX@ -libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ -includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/sail +libdir=${CMAKE_INSTALL_FULL_LIBDIR}@ +includedir=${CMAKE_INSTALL_FULL_INCLUDEDIR}@ Name: libsail Description: SAIL client library