diff options
author | Allen Winter <allen.winter@kdab.com> | 2021-09-26 13:01:12 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2021-09-26 13:01:12 -0400 |
commit | e840bbb08cc651a44044a8abc36935ca9d7a4fd4 (patch) | |
tree | 3e987aeddd33d12628dac338863ebdbf2327f578 /src/libical-glib | |
parent | 786b8066ab66e8bbceea0bacbe352fdcc49bb824 (diff) | |
download | libical-git-e840bbb08cc651a44044a8abc36935ca9d7a4fd4.tar.gz |
buildsystem - adjust libdir and includedir in generated pkgconfig
The lib and include dirs can be set at CMake time by passing
LIB_INSTALL_DIR and INCLUDE_INSTALL_DIR values. Additionally,
on 64-bit linux the libdir default is "lib64".
Issue#508
Diffstat (limited to 'src/libical-glib')
-rw-r--r-- | src/libical-glib/CMakeLists.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libical-glib/CMakeLists.txt b/src/libical-glib/CMakeLists.txt index 096f9bb4..f734024e 100644 --- a/src/libical-glib/CMakeLists.txt +++ b/src/libical-glib/CMakeLists.txt @@ -257,8 +257,16 @@ install(FILES ${LIBICAL_GLIB_HEADERS} set(prefix "${CMAKE_INSTALL_PREFIX}") set(exec_prefix "\${prefix}") -set(libdir "\${exec_prefix}/lib") -set(includedir "\${prefix}/include") +if(IS_ABSOLUTE ${LIB_INSTALL_DIR}) + set(libdir "${LIB_INSTALL_DIR}") +else() + set(libdir "\${exec_prefix}/${LIB_INSTALL_DIR}") +endif() +if(IS_ABSOLUTE ${INCLUDE_INSTALL_DIR}) + set(includedir "${INCLUDE_INSTALL_DIR}") +else() + set(includedir "\${prefix}/include") +endif() configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/libical-glib.pc.in |