From: <sm...@us...> - 2008-08-31 12:25:27
|
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. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |