[brlcad-commits] SF.net SVN: brlcad:[46730] brlcad/trunk/CMakeLists.txt
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <d_r...@us...> - 2011-09-16 14:21:04
|
Revision: 46730 http://brlcad.svn.sourceforge.net/brlcad/?rev=46730&view=rev Author: d_rossberg Date: 2011-09-16 14:20:57 +0000 (Fri, 16 Sep 2011) Log Message: ----------- a non visible function prototype yields a warning "warning C4013: 'hypot' undefined; assuming extern returning int" => turned the warnings into errors a possible consequence of missing prototypes is a floating point stack overflow (as it happened in this case) Modified Paths: -------------- brlcad/trunk/CMakeLists.txt Modified: brlcad/trunk/CMakeLists.txt =================================================================== --- brlcad/trunk/CMakeLists.txt 2011-09-16 06:07:40 UTC (rev 46729) +++ brlcad/trunk/CMakeLists.txt 2011-09-16 14:20:57 UTC (rev 46730) @@ -1254,6 +1254,8 @@ # just run the test and it will be handled by configure_file later. include(CheckSymbolExists) IF(WIN32) + # consider all warnings as errors (MSVC) + SET(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} /WX) CHECK_SYMBOL_EXISTS(hypot "math.h" HAVE_HYPOT) #If we don't have it, need to define it as _hypot in config_win IF(NOT HAVE_HYPOT) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |