Date: Sun, 30 Jan 2011 11:49:19 +0000 From: Jase Thew <freebsd@beardz.net> To: utisoft@gmail.com Cc: ports@freebsd.org Subject: Re: CMake strangeness with includes Message-ID: <4D45503F.2090007@beardz.net> In-Reply-To: <AANLkTi=MugYbEdRJ3XwT=z4DwyPBgBq_1_=Bco3vQgkV@mail.gmail.com> References: <AANLkTi=MugYbEdRJ3XwT=z4DwyPBgBq_1_=Bco3vQgkV@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D45503F.2090007>