Making a port - debugging cmake check_include_file
Matthew D. Fuller
fullermd at over-yonder.net
Sun Apr 24 09:43:46 UTC 2016
On Sun, Apr 24, 2016 at 12:09:53PM +0300 I heard the voice of
abi, and lo! it spake thus:
> On 24.04.2016 12:00, Matthew D. Fuller wrote:
> > get_property(idirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
> > set(CMAKE_REQUIRED_INCLUDES ${idirs})
> >
> > seems like it might do the trick.
>
> Nope, the same behavior.
Did you add those along with and after the EXTRA_INCDIRS stuff? Else
the extra bits wouldn't have been stuck into INCLUDE_DIRECTORIES yet.
> Is hardcoded directory includes considered evil and I should find
> (read - ask here :)) ) better solution ?
LOCALBASE != /usr/local is liable to be pretty rare, but I think it's
still theoretically supported, so...
--
Matthew Fuller (MF4839) | fullermd at over-yonder.net
Systems/Network Administrator | http://www.over-yonder.net/~fullermd/
On the Internet, nobody can hear you scream.
More information about the freebsd-ports
mailing list