From 9fc12274ced1e00a381055f895ed62b0cf034be6 Mon Sep 17 00:00:00 2001 From: Christopher Degawa Date: Tue, 31 May 2022 19:43:24 -0500 Subject: [PATCH] CMake: add src to webpinfo includes Fixes an include error with webp/types.h Signed-off-by: Christopher Degawa Change-Id: I3d17d529c904cdb4e5c8ae630e89ed3789791e79 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 51a5faa7..2f6234aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -589,7 +589,9 @@ if(WEBP_BUILD_WEBPINFO) "webpinfo") add_executable(webpinfo ${WEBPINFO_SRCS}) target_link_libraries(webpinfo exampleutil imageioutil) - target_include_directories(webpinfo PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src) + target_include_directories(webpinfo + PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src + ${CMAKE_CURRENT_SOURCE_DIR}/src) install(TARGETS webpinfo RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif()