[CMake] warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc

Brad King brad.king at kitware.com
Fri Dec 9 09:48:06 EST 2005


Jorg @ SolidSteel wrote:
> I am recently using CMake 2.2. Why is the exception handling flag /EHsc 
> removed from the Visual Studio .NET 2003 generator?

I'll assume you are adding this flag in CMAKE_CXX_FLAGS.

I don't think it is actually removed but instead transformed into a GUI 
checkbox setting instead of a command-line flag.  Check your generated 
project to see if the GUI setting for exception handling is set.

-Brad


More information about the CMake mailing list