I am using CMake to create my VS2012 solution, I need to set a code generation option to compile code in a specific way.

I need to set the C++ Exceptions to a specific setting.
How do I go about this? So far I've been trying this
SET_TARGET_PROPERTIES(swaretrievalobjects1000 PROPERTIES COMPILE_FLAGS "Yes with Extern C functions (/EHs)")
Is this correct or totally wrong?