On 2008-07-18 11:57-0600 Orion Poplawski wrote: > CMake Warning (dev) at drivers/CMakeLists.txt:70 (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 "xwin" links to some libraries for which the linker must > search: > -lpthreads > and other libraries with known full path:
I confirm this warning, and I have now fixed it (revision 8531) by using the full path internally in CMake for -lpthreads. CMake then converts that internal form to the -l form so the resulting build command is /usr/bin/gcc -fPIC -shared -Wl,-soname,xwin.so -o xwin.so CMakeFiles/xwin.dir/xwin.o ../src/libplplotd.so.9.5.0 -lltdl -ldl ../lib/csa/libcsirocsa.so.0.0.1 -lm -lSM -lICE -lX11 -lXext -lpthread ../lib/nn/libcsironn.so.0.0.1 -lfreetype -lqhull -Wl,-rpath,/home/software/plplot_cvs/HEAD/build_dir/src:/home/software/plplot_cvs/HEAD/build_dir/lib/csa:/home/software/plplot_cvs/HEAD/build_dir/lib/nn That works without errors as does execution of an example using -dev xwin. I don't quite know why your similar build command that was generated by the old configuration method did not work, but please try revision 8531. It should at least get rid of the warning message and also it may solve your build problem. 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 Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel