Hi Arjen,

I tested now your path in MSYS and it works. So far so good, but if I  
revert your changes it works as well!

I don't understand this:

> +    # Use fixed names instead
> +    # Note: MINGWLIBPATH gave problem: CACHE unknown component

Which version of cmake are you using? I'm using cmake version 2.6.3  
and if this is the problem which should boost up the minimum version  
required to 2.6.3 for MSYS only, since obviously (no one complained so  
far) there are not many who use MSYS with an older version anyways  
(except maybe you ;). And then revert your changes. But since 2.6.3  
has some important bug fixes included you should use this version (if  
you don't use it already).

Regards,
Werner

On 20.04.2009, at 06:05, [email protected] wrote:

> Revision: 9820
>          http://plplot.svn.sourceforge.net/plplot/?rev=9820&view=rev
> Author:   arjenmarkus
> Date:     2009-04-20 04:05:20 +0000 (Mon, 20 Apr 2009)
>
> Log Message:
> -----------
> Use "brute force" to determine the import libraries for gdi32.dll and
> comdlg32.dll under MSYS.
>
> Modified Paths:
> --------------
>    trunk/cmake/modules/wingcc.cmake
>
> Modified: trunk/cmake/modules/wingcc.cmake
> ===================================================================
> --- trunk/cmake/modules/wingcc.cmake  2009-04-18 01:20:09 UTC (rev  
> 9819)
> +++ trunk/cmake/modules/wingcc.cmake  2009-04-20 04:05:20 UTC (rev  
> 9820)
> @@ -23,16 +23,26 @@
> # PLD_wingcc            - ON means the wingcc device is enabled.
> # wingcc_COMPILE_FLAGS          - individual COMPILE_FLAGS required to  
> compile wingcc
> #                         device.
> -# wingcc_LINK_FLAGS    - list of pathnames of libraries for dynamic
> +# wingcc_LINK_FLAGS    - list of pathnames of libraries for dynamic
> #                         wingcc device.
> # DRIVERS_LINK_FLAGS    - list of LINK_FLAGS for all static devices.
>
> if(PLD_wingcc)
>   message(STATUS "Looking for gdi32 header and library")
> -  find_library(GDI32_LIBRARY gdi32 HINTS ${MINGWLIBPATH} $ 
> {BORLANDLIBPATH})
> -  if(GDI32_LIBRARY)
> -    find_library(COMDLG32_LIBRARY comdlg32 HINTS ${MINGWLIBPATH} $ 
> {BORLANDLIBPATH})
> -  endif(GDI32_LIBRARY)
> +  if(NOT MSYS)
> +    find_library(GDI32_LIBRARY gdi32 HINTS ${MINGWLIBPATH} $ 
> {BORLANDLIBPATH})
> +    if(GDI32_LIBRARY)
> +      find_library(COMDLG32_LIBRARY comdlg32 HINTS ${MINGWLIBPATH} $ 
> {BORLANDLIBPATH})
> +    endif(GDI32_LIBRARY)
> +  else(NOT MSYS)
> +    # Use fixed names instead
> +    # Note: MINGWLIBPATH gave problem: CACHE unknown component
> +    get_filename_component(msys_BIN ${CMAKE_C_COMPILER} PATH)
> +    set(msys_LIBDIR ${msys_BIN}/../lib)
> +    #get_filename_component(msys_LIBDIR ${msys_LIBS} PATH)
> +    set(GDI32_LIBRARY ${msys_LIBDIR}/libgdi32.a)
> +    set(COMDLG32_LIBRARY ${msys_LIBDIR}/libcomdlg32.a)
> +  endif(NOT MSYS)
>   if(GDI32_LIBRARY AND COMDLG32_LIBRARY)
>     message(STATUS "Looking for gdi32 header and library - found")
>     set(wingcc_LINK_FLAGS "${GDI32_LIBRARY};${COMDLG32_LIBRARY}")
> @@ -51,6 +61,6 @@
>   else(GDI32_LIBRARY AND COMDLG32_LIBRARY)
>     message(STATUS "Looking for gdi32 header and library - not found")
>     message(STATUS "WARNING: Setting PLD_wingcc to OFF.")
> -    set(PLD_wingcc OFF CACHE BOOL "Enable wingcc device" FORCE)
> +    set(PLD_wingcc OFF CACHE BOOL "Enable wingcc device" FORCE)
>   endif(GDI32_LIBRARY AND COMDLG32_LIBRARY)
> endif(PLD_wingcc)
>
>
> This was sent by the SourceForge.net collaborative development  
> platform, the world's largest Open Source development site.
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> Plplot-cvs mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plplot-cvs

--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: [email protected]
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to