Homec4science

Use `$<INSTALL_PREFIX>` in `target_include_directories`

Authored by Dakota Hawkins <dakotahawkins@gmail.com> on Aug 23 2018, 07:42.

Description

Use $<INSTALL_PREFIX> in target_include_directories

To make sure packages are relocatable, use $<INSTALL_PREFIX> in
$<INSTALL_INTERFACE:...> target_include_directories.

$<INSTALL_PREFIX> was introduced in CMake 2.8.11, which is already
being checked for locally.

References:

Signed-off-by: Dakota Hawkins <dakotahawkins@gmail.com>

Details

Committed
Dakota Hawkins <dakotahawkins@gmail.com>Aug 24 2018, 22:51
Pushed
trottetDec 4 2019, 13:52
Parents
R9484:9c96f500a39d: Merge pull request #1781 from wfvining/fix1764-cmake-errors
Branches
Unknown
Tags
Unknown

Event Timeline

Dakota Hawkins <dakotahawkins@gmail.com> committed R9484:b19292e6b642: Use `$<INSTALL_PREFIX>` in `target_include_directories` (authored by Dakota Hawkins <dakotahawkins@gmail.com>).Aug 24 2018, 22:51