From owner-freebsd-ports@FreeBSD.ORG Sun Jan 30 12:06:17 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF2C8106566C for ; Sun, 30 Jan 2011 12:06:16 +0000 (UTC) (envelope-from freebsd@beardz.net) Received: from svr06-mx.btshosting.co.uk (mx-2.btshosting.co.uk [178.63.196.248]) by mx1.freebsd.org (Postfix) with ESMTP id 23DB48FC16 for ; Sun, 30 Jan 2011 12:06:15 +0000 (UTC) Received: from [192.168.1.65] (host81-135-121-219.range81-135.btcentralplus.com [81.135.121.219]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bazerka@beardz.net) by svr06-mx.btshosting.co.uk (Postfix) with ESMTPSA id 8D6096A03F4; Sun, 30 Jan 2011 11:49:26 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beardz.net; s=default; t=1296388166; bh=q8Ru+vUuEZ3Z1tDoNkkjUnb7ccVcGuTjuJFpdbXh2Bk=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=qhEGn2/Jof4o1jBZEFLZIdrK9rDkdED6opfoIpKv/sPyxQbH9d/sAtfabEaZpDIbV x9Kmd//Jvc9qHznYwJq09WzHNRJ+IKgw8WKUxRa7+J1qppjOtkkn93WHYAJEmaeCE7 iyjj+cCs9LaL6ZzmlEmLIjv+A5tn4JQURzwmLhkQ= Message-ID: <4D45503F.2090007@beardz.net> Date: Sun, 30 Jan 2011 11:49:19 +0000 From: Jase Thew User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: utisoft@gmail.com References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: CMake strangeness with includes X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2011 12:06:17 -0000 On 30/01/2011 10:26, Chris Rees wrote: > Hi all, > > I'm working on porting projectM to fulfil [1], but my unfamiliarity > with cmake is causing a few problems.... > > I can't get it to find and use ${LOCALBASE}/include, as evidenced by > the error message at the end. > > I've tried > > CMAKE_ENV= "CFLAGS=\"I/usr/include:/usr/local/include\"" > > (I know it's hard-coded for now), but it's not making any > difference.... Is there anything obvious I've missed? Yes > ${LOCALBASE}/include/GL/glew.h does exist... > > TIA, > > Chris > > [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=152823 > Hi, Just set CFLAGS in the port Makefile as you would for non-CMake ports. bsd.cmake.mk will then take care of passing that in correctly to CMake. e.g. see irc/weechat-devel Regards, Jase.