Revision: 10199
http://plplot.svn.sourceforge.net/plplot/?rev=10199&view=rev
Author: airwin
Date: 2009-08-03 02:02:37 +0000 (Mon, 03 Aug 2009)
Log Message:
-----------
Replace ENABLE_cxx logic with CMAKE_CXX_COMPILER_WORKS logic to keep meaning
of ENABLE_cxx "pure", i.e., enabling the C++ bindings and everything that
depends upon them, but not device drivers that happen to be written in C++.
Modified Paths:
--------------
trunk/cmake/modules/wxwidgets.cmake
Modified: trunk/cmake/modules/wxwidgets.cmake
===================================================================
--- trunk/cmake/modules/wxwidgets.cmake 2009-08-02 05:44:48 UTC (rev 10198)
+++ trunk/cmake/modules/wxwidgets.cmake 2009-08-03 02:02:37 UTC (rev 10199)
@@ -107,6 +107,13 @@
option(ENABLE_wxwidgets "Enable wxwidgets bindings" ON)
endif(DEFAULT_NO_BINDINGS)
+if(ENABLE_wxwidgets AND NOT CMAKE_CXX_COMPILER_WORKS)
+ message(STATUS "WARNING: no working C++ compiler so "
+ "setting ENABLE_wxwidgets to OFF."
+ )
+ set(ENABLE_wxwidgets OFF CACHE BOOL "Enable wxwidgets bindings" FORCE)
+endif(ENABLE_wxwidgets AND NOT CMAKE_CXX_COMPILER_WORKS)
+
if(ENABLE_wxwidgets AND NOT PLD_wxwidgets)
message(STATUS
"WARNING: PLD_wxwidgets is OFF so "
@@ -115,13 +122,6 @@
set(ENABLE_wxwidgets OFF CACHE BOOL "Enable wxwidgets bindings" FORCE)
endif(ENABLE_wxwidgets AND NOT PLD_wxwidgets)
-if(ENABLE_wxwidgets AND NOT ENABLE_cxx)
- message(STATUS
- "WARNING: ENABLE_cxx is OFF so "
- "setting ENABLE_wxwidgets to OFF."
- )
- set(ENABLE_wxwidgets OFF CACHE BOOL "Enable wxwidgets bindings" FORCE)
-endif(ENABLE_wxwidgets AND NOT ENABLE_cxx)
if(ENABLE_wxwidgets)
set(wxwidgets_true "")
else(ENABLE_wxwidgets)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|