Commit c6fe1d17 authored by Tobias Berner's avatar Tobias Berner Committed by Albert Astals Cid

Pass MTP_INCLUDE_DIR to include_directories when trying to link against libmtp

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.

REVIEW: 126599
parent e1bed3f5
......@@ -9,6 +9,7 @@ set(kio_mtp_PART_SRCS
kio_mtp_helpers.cpp
)
include_directories(${MTP_INCLUDE_DIR})
add_library(kio_mtp MODULE ${kio_mtp_PART_SRCS} )
target_link_libraries(kio_mtp ${MTP_LIBRARIES} Qt5::Core KF5::KIOCore KF5::I18n KF5::Solid)
set_target_properties(kio_mtp PROPERTIES OUTPUT_NAME "mtp")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment