This might be a silly question, but I'm trying to compile the example you provided...
I think that the issue is somehow caused by a conflict with MacPorts. I haven't managed...
Ah and the SWIG version is: $ swig -version SWIG Version 3.0.8 Compiled with g++...
I'm using MacOS X 10.11, and my Python installation is 64-bit, installed from Anaconda....
Ah sorry when I say I didn't add any flags, in the cmake config menu I did select...
And just to be clear, when I originally ran cmake, I ran the exact commands in INSTALL...
Here's what I get for the cmake command you asked for: https://gist.github.com/astrofrog/bcb21b1fdbe878d3eadd3d593a33c9cc...
Just in case it helps, here is the install log: https://gist.github.com/astrofrog/96b769397a3c0aff86f0c24efc805e2c...