IRC Log Viewer » #firebreath » 2013-10-21

IRC Nick Time (GMT-7) Message
dingbatfoo 07:10 if I set `SET(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")` in projectDef.cmake, then I get linking errors - presumably because the main FB libs are built without the -stdlib flag
anyone else seen this?
the error I get is as follows:
Linking CXX CFBundle shared module FooPlugin.plugin/Contents/MacOS/npFooPlugin
Undefined symbols for architecture x86_64: "FB::PluginCore::getParamVariant(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
vtable for FooPlugin in FooPlugin.cpp.o
oh, and this is in Mac OS X Mountain Lion
hm, now that I review the log I also see curious warnings: "/usr/bin/ranlib: file: libPluginCore.a(precompiled_headers.cpp.o) has no symbols"
dingbatfoo 07:10 what's the right way to override CMAKE_CXX_FLAGS globally across all FB projects?
dingbatfoo 08:10 just to confirm that this is indeed caused by the `SET(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")` flags - got the same error when building examples
dingbatfoo 08:10 so, in short - what is the recommended way to build FB plugins that use C++11 in Mac?