|
From: <sm...@us...> - 2009-03-16 15:26:12
|
Revision: 9746
http://plplot.svn.sourceforge.net/plplot/?rev=9746&view=rev
Author: smekal
Date: 2009-03-16 15:25:43 +0000 (Mon, 16 Mar 2009)
Log Message:
-----------
Only check for broken cmath with isnan missing if compiler is not a Visual C++ compiler.
Corrected wrong name in comment.
Modified Paths:
--------------
trunk/cmake/modules/TestBrokenIsnanCXX.cmake
trunk/cmake/modules/c++.cmake
Modified: trunk/cmake/modules/TestBrokenIsnanCXX.cmake
===================================================================
--- trunk/cmake/modules/TestBrokenIsnanCXX.cmake 2009-03-16 15:24:07 UTC (rev 9745)
+++ trunk/cmake/modules/TestBrokenIsnanCXX.cmake 2009-03-16 15:25:43 UTC (rev 9746)
@@ -1,4 +1,4 @@
-# cmake/modules/TestForNamespace.cmake
+# cmake/modules/TestBrokenIsnanCXX.cmake
#
# C++ binding configuration
#
Modified: trunk/cmake/modules/c++.cmake
===================================================================
--- trunk/cmake/modules/c++.cmake 2009-03-16 15:24:07 UTC (rev 9745)
+++ trunk/cmake/modules/c++.cmake 2009-03-16 15:25:43 UTC (rev 9746)
@@ -39,8 +39,11 @@
INCLUDE(CheckIncludeFileCXX)
CHECK_INCLUDE_FILE_CXX(cmath HAVE_CMATH)
-# Need to add check for broken cmath with isnan missing (BROKEN_ISNAN_CXX)
-INCLUDE(TestBrokenIsnanCXX)
+if(NOT MSVC)
+ # Need to add check for broken cmath with isnan missing (BROKEN_ISNAN_CXX)
+ # but not for Visual C++ compilers
+ include(TestBrokenIsnanCXX)
+endif(NOT MSVC)
# Need to add check if stdint.h can be used from c++ (HAVE_CXX_STDINT_H)
INCLUDE(TestForStdintCXX)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|