Move Objective-C++ Mac code for Wx into macsupport.mm with stub methods in panel.cpp, and stop compiling all C++ as Objective-C++. cmake -G Xcode # now works fine