From owner-freebsd-ports@freebsd.org Sun Apr 24 09:49:00 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 869B4B19E1A for ; Sun, 24 Apr 2016 09:49:00 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from mail.abinet.ru (mail.abinet.ru [136.243.72.227]) by mx1.freebsd.org (Postfix) with ESMTP id 4E0DA1ED4 for ; Sun, 24 Apr 2016 09:48:59 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from [10.0.0.1] (unknown [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.abinet.ru (Postfix) with ESMTPSA id A7775191E7 for ; Sun, 24 Apr 2016 09:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=abinet.ru; s=dkim; t=1461491338; bh=a3qNPvE8AKd+1eSROSVkIxbrWec2rfPWpCkzt3xPwHw=; h=Date:From:To:Subject:References:In-Reply-To; b=ECYXVpb+tl1WYGIBQoFS6QXPR5fLG9GX3TfkByjWOs/Sx4vSBsU83xG7YHJd9ap7V Ep/rhULk02Mb+4GZWQWRUErf56f/HNmLvq32E5yFR4NQjaqF40nX0Ao1JsBZEEbmJV 6lpQelFGKP4MnDf8HrMN0dsedumO2Oi1Rvgy3zn8= Message-ID: <571C968A.9060505@abinet.ru> Date: Sun, 24 Apr 2016 12:48:58 +0300 From: abi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:) Gecko/20160112 FossaMail/25.2.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Making a port - debugging cmake check_include_file 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> In-Reply-To: <20160424094344.GV83618@over-yonder.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2016 09:49:00 -0000 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... > >