From: <ai...@us...> - 2009-05-23 15:53:44
|
Revision: 9989 http://plplot.svn.sourceforge.net/plplot/?rev=9989&view=rev Author: airwin Date: 2009-05-23 15:53:35 +0000 (Sat, 23 May 2009) Log Message: ----------- Make plplotdmd_SHARED an option (which defaults to OFF since building this library shared does not currently work for Debian Lenny and possibly other Linux distros). Modified Paths: -------------- trunk/bindings/d/CMakeLists.txt Modified: trunk/bindings/d/CMakeLists.txt =================================================================== --- trunk/bindings/d/CMakeLists.txt 2009-05-22 21:31:47 UTC (rev 9988) +++ trunk/bindings/d/CMakeLists.txt 2009-05-23 15:53:35 UTC (rev 9989) @@ -29,10 +29,12 @@ set(plplotdmd${LIB_TAG}_LIB_SRCS plplot.d ) - # STATIC library the only one that seems to work for now (at least - # on Debian Lenny) so use that rather than shared alternative - set(plplotdmd_SHARED) - if(plplotdm_SHARED) + # Set this option to OFF by default since the STATIC library is + # the only one that seems to work for now on Debian Lenny and + # potentially other Linux systems. + option(plplotdmd_SHARED "Treat libplplotdmd as a shared library" OFF) + + if(plplotdmd_SHARED) add_library(plplotdmd${LIB_TAG} ${plplotdmd${LIB_TAG}_LIB_SRCS}) if(BUILD_SHARED_LIBS) @@ -59,7 +61,7 @@ INSTALL_NAME_DIR "${LIB_DIR}" ) endif(USE_RPATH) - else(plplotdm_SHARED) + else(plplotdmd_SHARED) add_library(plplotdmd${LIB_TAG} STATIC ${plplotdmd${LIB_TAG}_LIB_SRCS}) target_link_libraries(plplotdmd${LIB_TAG} plplot${LIB_TAG}) endif(plplotdm_SHARED) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |