Skip to content

cmake: include GNUInstallDirs#469

Closed
bjornfor wants to merge 1 commit intozxing-cpp:masterfrom
bjornfor:include-gnu-install-dirs
Closed

cmake: include GNUInstallDirs#469
bjornfor wants to merge 1 commit intozxing-cpp:masterfrom
bjornfor:include-gnu-install-dirs

Conversation

@bjornfor
Copy link
Copy Markdown
Contributor

@bjornfor bjornfor commented Jan 2, 2023

So that we get access to CMAKE_INSTALL_FULL_<dir> variables, ref.
https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html

Before:

  $ head -4 _install/lib64/pkgconfig/zxing.pc
  prefix=/home/bf/inbox/zxing-cpp/_install
  exec_prefix=${prefix}
  libdir=
  includedir=

After:

  $ head -4 _install/lib64/pkgconfig/zxing.pc
  prefix=/home/bf/inbox/zxing-cpp/_install
  exec_prefix=${prefix}
  libdir=/home/bf/inbox/zxing-cpp/_install/lib64
  includedir=/home/bf/inbox/zxing-cpp/_install/include

Fixes: aacc1bc ("zxing.pc.in: fix when CMAKE_INSTALL_<dir> is absolute")

So that we get access to CMAKE_INSTALL_FULL_<dir> variables, ref.
https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html

Before:
  $ head -4 _install/lib64/pkgconfig/zxing.pc
  prefix=/home/bf/inbox/zxing-cpp/_install
  exec_prefix=${prefix}
  libdir=
  includedir=

After:
  $ head -4 _install/lib64/pkgconfig/zxing.pc
  prefix=/home/bf/inbox/zxing-cpp/_install
  exec_prefix=${prefix}
  libdir=/home/bf/inbox/zxing-cpp/_install/lib64
  includedir=/home/bf/inbox/zxing-cpp/_install/include

Fixes: aacc1bc ("zxing.pc.in: fix when CMAKE_INSTALL_<dir> is absolute")
@axxel
Copy link
Copy Markdown
Collaborator

axxel commented Jan 2, 2023

See my upcoming comment in your last PR.

@axxel axxel closed this Jan 2, 2023
@bjornfor bjornfor deleted the include-gnu-install-dirs branch January 3, 2023 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants