Closed schdro closed 1 year ago
With https://github.com/argtable/argtable3/pull/85 output is like: Incpath=/usr/include
(when tested with default include install path)
For the record, had noticed that PR https://github.com/argtable/argtable3/pull/82 point 1 also raises and (partially) addresses issue of missing include. However, abovelinked PR https://github.com/argtable/argtable3/pull/85 with extended approach complies to recommendations of https://cmake.org/cmake/help/latest/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.html and also aligns install path.
argtable (3.2.2) exports a CMake config file
Argtable3Config.cmake
during installation. However, it does not export the include path whereargtable3.h
is installed. Due to this, particularly with nonstandard paths deviating from/usr/include
(e.g. some local CI build installing argtable dependency into local directory first) the header file will be poorly accessible. This makes default installation of the header file less useful. I.e., either installation could also be suppresed, or the include path should be exported cleanly.Sample:
Prints
Incpath=incpath-NOTFOUND
because the target property for the include path is unpopulated.