Change default pkgconfig install path for FreeBSD
ClosedPublic

Authored by tcberner on May 8 2017, 1:35 PM.

Details

Summary

FreeBSD, opposed to most other sytems, does not install pkgconfig files to
lib/pkgconfig, but to libdata/pkgconfig.

Diff Detail

Repository
R240 Extra CMake Modules
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
tcberner created this revision.May 8 2017, 1:35 PM
Restricted Application added projects: Frameworks, Build System. · View Herald TranscriptMay 8 2017, 1:35 PM
Restricted Application added subscribers: Build System, Frameworks. · View Herald Transcript
tcberner updated this revision to Diff 14285.May 8 2017, 1:52 PM

Drop space after if.

kfunk added a subscriber: kfunk.May 8 2017, 3:25 PM
kfunk added inline comments.
modules/ECMGeneratePkgConfigFile.cmake
172–176

matches -> MATCHES -- I'm surprised that actually works as-is.

Also: Why not if (CMAKE_SYSTEM_NAME MATCHES ...) and switch the bodies inside the if & else branch to simplify?

kfunk requested changes to this revision.May 8 2017, 3:27 PM
This revision now requires changes to proceed.May 8 2017, 3:27 PM
tcberner updated this revision to Diff 14296.May 8 2017, 4:16 PM
tcberner edited edge metadata.
  • Turn around cases of the if-clause.
  • Fix cmake matches -> MATCHES.
tcberner marked an inline comment as done.May 8 2017, 4:17 PM
kfunk accepted this revision.May 8 2017, 6:10 PM

Well, for me that looks good now

This revision is now accepted and ready to land.May 8 2017, 6:10 PM
This revision was automatically updated to reflect the committed changes.