[Marble-bugs] [Bug 294494] shapelib not found by CMake under Archlinux

Dennis Nienhüser earthwings at gentoo.org
Mon Feb 20 12:35:53 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=294494


Dennis Nienhüser <earthwings at gentoo.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |earthwings at gentoo.org




--- Comment #1 from Dennis Nienhüser <earthwings gentoo org>  2012-02-20 12:35:53 ---
No cmake guru status needed for that ;-)
The difference seems to be that ArchLinux installs the header as
usr/include/libshp/shapefil.h, but Debian uses usr/include/shapefil.h.
Replacing 

find_path(LIBSHP_INCLUDE_DIR NAMES shapefil.h)

with

find_path(LIBSHP_INCLUDE_DIR NAMES shapefil.h PATH_SUFFIXES libshp)

possibly does the trick (in Findlibshp.cmake). See also 
cmake --help-command find_path

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Marble-bugs mailing list