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:
Code: Select all
cmake -D BUILD_DEMOS:BOOL=OFF -D CP_USE_CGPOINTS:BOOL=0 .
make
etc.
Then I tried with this flag:
Code: Select all
CMAKE_C_FLAGS:STRING="-DCP_USE_CGPOINTS=0"
But it still seems to be compiling CGPoint into the libraries as I get errors like this:
Code: Select all
cmunktest.go:16<SNIP>: cannot use x (type float64) as type _Ctype_CGFloat in field value
Is there any standard way to fully disable compiling with CGPoint?
Thanks for your help.