Revision: 12269
http://plplot.svn.sourceforge.net/plplot/?rev=12269&view=rev
Author: airwin
Date: 2012-11-02 19:10:52 +0000 (Fri, 02 Nov 2012)
Log Message:
-----------
Determine SHAPELIB_LIBRARY_DIRS.
Modified Paths:
--------------
trunk/cmake/modules/FindShapelib.cmake
Modified: trunk/cmake/modules/FindShapelib.cmake
===================================================================
--- trunk/cmake/modules/FindShapelib.cmake 2012-11-02 18:55:27 UTC (rev 12268)
+++ trunk/cmake/modules/FindShapelib.cmake 2012-11-02 19:10:52 UTC (rev 12269)
@@ -4,8 +4,9 @@
# This module defines the following uncached variables:
# SHAPELIB_FOUND, if false, do not try to use shapelib.
# SHAPELIB_INCLUDE_DIR, where to find shapefil.h.
-# SHAPELIB_LIBRARIES, the libraries to link against to use shapelib
-# is found.
+# SHAPELIB_LIBRARIES, the libraries to link against to use the shapelib
+# library.
+# SHAPELIB_LIBRARY_DIRS, the directory where the shapelib library is found.
find_path(SHAPELIB_INCLUDE_DIR shapefil.h /usr/local/include /usr/include)
@@ -18,6 +19,7 @@
# Set uncached variables as per standard.
set(SHAPELIB_FOUND ON)
set(SHAPELIB_LIBRARIES ${SHAPELIB_LIBRARY})
+ get_filename_component(SHAPELIB_LIBRARY_DIRS ${SHAPELIB_LIBRARY} PATH)
endif(SHAPELIB_LIBRARY)
endif(SHAPELIB_INCLUDE_DIR)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|