Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2016 12:48:58 +0300
From:      abi <abi@abinet.ru>
To:        freebsd-ports@freebsd.org
Subject:   Re: Making a port - debugging cmake check_include_file
Message-ID:  <571C968A.9060505@abinet.ru>
In-Reply-To: <20160424094344.GV83618@over-yonder.net>
References:  <571BE034.9070200@abinet.ru> <20160423215530.GP83618@over-yonder.net> <571BF713.4040607@abinet.ru> <20160424071351.GQ83618@over-yonder.net> <571C876F.3040000@abinet.ru> <20160424090004.GT83618@over-yonder.net> <571C8D61.6010200@abinet.ru> <20160424094344.GV83618@over-yonder.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I passed -DCMAKE_REQUIRED_INCLUDES:STRING="${LOCALBASE}/include" from 
port Makefile.
Looks like the best solution - no need to poke upstream or make patch.

On 24.04.2016 12:43, Matthew D. Fuller wrote:
> 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...
>
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?571C968A.9060505>