|
From: <and...@us...> - 2011-10-19 19:21:28
|
Revision: 11978
http://plplot.svn.sourceforge.net/plplot/?rev=11978&view=rev
Author: andrewross
Date: 2011-10-19 19:21:21 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
Only compile src/pldeprecated.c if PL_DEPRECATED is defined. This avoids a warning about an empty translation unit which breaches the ISO C standard.
Modified Paths:
--------------
trunk/src/CMakeLists.txt
Modified: trunk/src/CMakeLists.txt
===================================================================
--- trunk/src/CMakeLists.txt 2011-10-19 14:43:26 UTC (rev 11977)
+++ trunk/src/CMakeLists.txt 2011-10-19 19:21:21 UTC (rev 11978)
@@ -29,7 +29,6 @@
plcore.c
plctrl.c
plcvt.c
- pldeprecated.c
pldtik.c
plf2ops.c
plfill.c
@@ -56,6 +55,9 @@
pltime.c
pllegend.c
)
+if(PL_DEPRECATED)
+ set(plplot${LIB_TAG}_LIB_SRCS ${plplot${LIB_TAG}_LIB_SRCS} pldeprecated.c)
+endif(PL_DEPRECATED)
if(LTDL_WIN32)
set(plplot${LIB_TAG}_LIB_SRCS ${plplot${LIB_TAG}_LIB_SRCS} ltdl_win32.c)
endif(LTDL_WIN32)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|