Pass MTP_INCLUDE_DIR to include_directories when trying to link against libmtp

Review Request #126599 - Created Jan. 2, 2016 and submitted

Information
Tobias Berner
kio-extras
Reviewers
dfaure

cmake/FindMtp.cmake defines MTP_INCLUDE_DIR, yet it is not used while trying
to link against libmtp in mtp/CMakeLists.txt. This makes it fail with
| /wrkdirs/usr/ports/devel/kio-extras/work/kio-extras-15.12.0/mtp/devicecache.h:32:10: fatal error: 'libmtp.h' file not found
| #include <libmtp.h>

This patch passes it to include_directories, thereby fixing the build on FreeBSD.

Build locally

David Faure
Tobias Berner
Tobias Berner
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit c6fe1d176daa235a8ecb2c7411a0e191d2610cf1 by Albert Astals Cid on behalf of Tobias Berner to branch Applications/16.08.
Loading...