diff options
author | Tobias C. Berner <tcberner@gmail.com> | 2017-05-08 15:30:18 +0200 |
---|---|---|
committer | Tobias C. Berner <tcberner@gmail.com> | 2017-05-08 20:18:31 +0200 |
commit | 416c7e9facf905c5be757dd1a1c66e2ed878f641 (patch) | |
tree | 75f31e021fd8acd348d6ed81d9ad4d07c48fb85a | |
parent | 94056e2e4629fd4f5ff100d0864355d1a898f455 (diff) | |
download | extra-cmake-modules-416c7e9facf905c5be757dd1a1c66e2ed878f641.tar.gz extra-cmake-modules-416c7e9facf905c5be757dd1a1c66e2ed878f641.tar.bz2 |
Change default pkgconfig install path for FreeBSD
Summary:
FreeBSD, opposed to most other sytems, does not install pkgconfig files to
lib/pkgconfig, but to libdata/pkgconfig.
Reviewers: #freebsd, apol, kfunk
Reviewed By: kfunk
Subscribers: kfunk, #frameworks, #build_system
Tags: #frameworks, #build_system
Differential Revision: https://phabricator.kde.org/D5766
-rw-r--r-- | modules/ECMGeneratePkgConfigFile.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/ECMGeneratePkgConfigFile.cmake b/modules/ECMGeneratePkgConfigFile.cmake index 66c57cd9..11f043d8 100644 --- a/modules/ECMGeneratePkgConfigFile.cmake +++ b/modules/ECMGeneratePkgConfigFile.cmake @@ -169,7 +169,11 @@ Requires: ${PKGCONFIG_TARGET_DEPS} ) if(EGPF_INSTALL) - set(ECM_PKGCONFIG_INSTALL_DIR "${EGPF_LIB_INSTALL_DIR}/pkgconfig" CACHE PATH "The directory where pkgconfig will be installed to.") + if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") + set(ECM_PKGCONFIG_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig" CACHE PATH "The directory where pkgconfig will be installed to.") + else() + set(ECM_PKGCONFIG_INSTALL_DIR "${EGPF_LIB_INSTALL_DIR}/pkgconfig" CACHE PATH "The directory where pkgconfig will be installed to.") + endif() install(FILES ${PKGCONFIG_FILENAME} DESTINATION ${ECM_PKGCONFIG_INSTALL_DIR}) endif() endfunction() |