On 2008-05-13 20:08+0200 Arjen Markus wrote:

> CMake Warning (dev) at src/CMakeLists.txt:129 (add_library):
>  Policy CMP0003 should be set before this line.  Add code such as
>
>    if(COMMAND cmake_policy)
>      cmake_policy(SET CMP0003 NEW)
>    endif(COMMAND cmake_policy)
>
>  as early as possible but after the most recent call to
>  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
>  because target "plplotd" links to some libraries for which the linker must
>  search:
>
>    gdi32, comdlg32
>
>  and other libraries with known full path:
>
>    /lib/cd.lib
>    C:/arjen/plplot-svn/install-windows/dll/csironn.lib

For CMake 2.6.x you get the above warning if the preferred absolute
pathnames are not used by libraries.  I have modified FindGDI32.cmake and
wingcc.cmake (revision 8412) to use find_library to find the gdi32 and
associated libraries. find_library always returns the preferred absolute
pathname for the library.

The new logic continues to give the correct result (nothing found) on Linux,
but that doesn't test all the changed CMake logic. Arjen, could you review
my changes (especially the Borland part which I didn't understand) and test
on windows?

N.B. The above message only occurs for the first instance so once
find_library is used to obtain the absolute pathnames for gdi32 and
comdlg32, then on windows you may get further CMP0003 warnings (which will
need fixing the same way by always using find_library to find libraries.)

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: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to