Homec4science

Fix library install destinations

Authored by Matthew Woehlke <matthew.woehlke@kitware.com> on Aug 9 2017, 21:29.

Description

Fix library install destinations

Modify library install destinations to install .dll's to the correct
location (bin, not lib), and to install other artifacts to the
correct platform-dependent location by using GNUInstallDirs. This is
required for some distributions (e.g. Fedora) and will fix an issue that
otherwise requires those distributions to patch the upstream sources.
Also, add options to suppress installation, which may be useful for
projects that embed Google Test.

Since Google Test is trying to support archaic versions of CMake, a
brain-dead fallback (which requires that the user set either LIB_SUFFIX
or CMAKE_INSTALL_LIBDIR themselves) is included for versions that
predate GNUInstallDirs.

Fixes #1161.

Co-Authored-By: d3x0r <d3x0r@users.noreply.github.com>

Details

Committed
Matthew Woehlke <matthew.woehlke@kitware.com>Aug 9 2017, 21:29
Pushed
trottetDec 4 2019, 13:52
Parents
R9484:ec44c6c1675c: Merge pull request #821 from mazong1123/master
Branches
Unknown
Tags
Unknown

Event Timeline

Matthew Woehlke <matthew.woehlke@kitware.com> committed R9484:0e8e0e07d6c4: Fix library install destinations (authored by Matthew Woehlke <matthew.woehlke@kitware.com>).Aug 9 2017, 21:29