Exception not caught

I am asking a question about compiling openCV–this is related to open CV because I am able to use other OSS without issues. Are there any CMake settings that I need to use?