CMake strangeness with includes

Jase Thew freebsd at beardz.net
Sun Jan 30 12:06:17 UTC 2011


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.


More information about the freebsd-ports mailing list