On Wednesday 18 March 2009, Denis Scherbakov wrote: > Dear CMake Community, > > Could anyone give me a hint, how to check if a system can handle SIGFPE > signal and set HAVE_SIGFPE variable. > > For example, linux on alpha machines produces a core dump instead of > SIGFPE.
When do you get a SIGFPE, by division by zero ? Maybe you can write a small testprogram which does a division by zero, and install a signal handler for SIGFPE which exits the program cleanly. On a system without that signal you may get a crash and via CHECK_C_SOURCE_RUNS() or something like this you may be able to detect the difference. Alex _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
