I have an OpenCV project which generates its makefiles with cmake.
If I do
cmake . && make, it keeps report linking error. I figure this is due to the choice of
libstd. (I have done an experiment writing a helloworld opencv project and it turns out
-libstd=libstdc++ is the key to compiling success).
How can I add the switch
-libstd=libstdc++ in a cmake prject?
In case it is helpful, my system is
OSX 10.9 and compiler