On 2008-08-31 12:25-0000 [EMAIL PROTECTED] wrote: > Revision: 8731 > http://plplot.svn.sourceforge.net/plplot/?rev=8731&view=rev > Author: smekal > Date: 2008-08-31 12:25:36 +0000 (Sun, 31 Aug 2008) > > Log Message: > ----------- > For the MinGW compiler the MINGWLIBPATH variable is set to the import library > path of the MinGW distribution, by getting the path component of the absolute > filename of the MinGW C compiler (CMAKE_C_COMPILER). > > Modified Paths: > -------------- > trunk/CMakeLists.txt > > Modified: trunk/CMakeLists.txt > =================================================================== > --- trunk/CMakeLists.txt 2008-08-31 10:27:59 UTC (rev 8730) > +++ trunk/CMakeLists.txt 2008-08-31 12:25:36 UTC (rev 8731) > @@ -46,6 +46,15 @@ > # Location where PLplot cmake build system first looks for cmake modules. > set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules) > > +# We need the path to the MinGW compiler in order to find > +# the import libraries for system libraries. > +IF(MINGW) > + get_filename_component(MINGWBINPATH ${CMAKE_C_COMPILER} PATH) > + set(MINGWLIBPATH ${MINGWBINPATH}/../lib > + CACHE FILEPATH > + DOCSTRING "Path to MinGW import libraries") > +ENDIF(MINGW) > + > # Version data that need modification for each release. > include(plplot_version) > # parameters to control overall cmake behaviour.
Hi Werner: I do have one minor stylistic concern about the above change. Just to be consistent with most of the other configuration setup we do, shouldn't this change go in cmake/modules/plplot.cmake? Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
