Phil,

This is a little odd as it the FindShapelib.cmake file is just using
standard cmake calls like find_library and find_path. These should
honour your set variables. In fact it looks like they do, except that
they are treating them as relative paths so tack your current
directory on the front?

This same approach is used to find a lot of other libraries. Do you
see similar problems looking for other libraries? (N.B. not wxwidgets
as this uses pkg-config usually).

You might want to try adding additional messages in to see exactly
where your variables are being modified. 

Finally, what version of cmake are you using?

Thanks

Andrew

On Thu, Nov 22, 2012 at 04:26:09AM -0800, phil rosenberg wrote:
> I've just started having some problems building plplot. I run cmake to 
> generate a visual studio project, but when I try to build I get the error
> ??
> c1 : fatal error C1083: Cannot open source file: 
> 'D:/SourceCode/Libraries/shapelib-1.3.0/include/shapelib': Permission denied
> ??
> It's not surprising that it can't open that file, because it is in fact a 
> directory. Checking the cmake output I found:
> ??
> FindShapelib: Found shapelib header directory, 
> D:/SourceCode/Libraries/plplot_trunk_staticbuild_debug/ 
> D:/SourceCode/Libraries/shapelib-1.3.0/include/shapelib, and library, 
> D:/SourceCode/Libraries/plplot_trunk_staticbuild_debug/ 
> D:/SourceCode/Libraries/shapelib-1.3.0/lib/shapelibsd.lib.
> ??
> Which seems incorrect.
> ??
> To specify the location of shapelib I use the following options
> ??
> -DHAVE_SHAPELIB=ON
> -DSHAPELIB_INCLUDE_DIR=" 
> D:/SourceCode/Libraries/shapelib-1.3.0/include/shapelib"
> ???DSHAPELIB_LIBRARY=" 
> D:/SourceCode/Libraries/shapelib-1.3.0/lib/shapelibs.lib" ??
> ??
> I noticed there was a change to the cmake files regarding shapelib since my 
> last update. Is there anything that could have brocken the build?
> ??
> Phil

> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov

> _______________________________________________
> Plplot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plplot-devel


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to