Disabling use of CGPoint, CGFloat on Mac OS X
Posted: Sun Apr 01, 2012 5:19 pm
Hi, I'm just starting some work on a Go wrapper for the library as part of a small project I'm working on. I'd like to disable use of CGPoint and CGFloat and just use the CP types but can't seem to get it working through the cmake -> make process. I tried using:
Then I tried with this flag:
But it still seems to be compiling CGPoint into the libraries as I get errors like this:
Is there any standard way to fully disable compiling with CGPoint?
Thanks for your help.
Code: Select all
cmake -D BUILD_DEMOS:BOOL=OFF -D CP_USE_CGPOINTS:BOOL=0 .
make
etc.
Code: Select all
CMAKE_C_FLAGS:STRING="-DCP_USE_CGPOINTS=0"
Code: Select all
cmunktest.go:16<SNIP>: cannot use x (type float64) as type _Ctype_CGFloat in field value
Thanks for your help.