[physfs] ensuring all object files are compiled with -fexceptions

Ryan C. Gordon icculus at icculus.org
Sat Jan 17 16:31:32 EST 2009

> However, I'm still seeing the behaviour mentioned above, with exceptions
> failing to unwind the call stack and I have to assume that the values
> given in $CMAKE_C_FLAGS aren't being applied to all (or any) object
> files.

run "make VERBOSE=1" when building to verify it's compiling correctly. 
-DCMAKE_C_FLAGS worked here.

> Not being familiar with cmake, what's the correct way to force all
> objects to be compiled with these flags?

There's also CMAKE_CXX_FLAGS, but I guess C++ code would have exceptions 
enabled by default (and we don't have any C++, except on BeOS and the 
wxWindows example program).


More information about the physfs mailing list