summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYannis Guyon <yguyon@google.com>2021-07-19 20:40:32 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-07-19 20:40:32 +0000
commite0241154901620a3dc6c3929463608b9bf2c36aa (patch)
tree06f8937e4dedd81ef1b964b6c2c795fe1b343e60
parentece18e5520c0872dcd7b58d3d98d4f1c9e7fa1e8 (diff)
parentedea64442c76124802e6ae4e1e048f05367e9938 (diff)
downloadlibwebp-e0241154901620a3dc6c3929463608b9bf2c36aa.tar.gz
Merge "libwebp/CMake: Add <BUILD_INTERFACE> to webp incl" into main
-rw-r--r--CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d64f676b..bd1bebb8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -283,10 +283,12 @@ if(XCODE)
libwebp_add_stub_file(webp)
endif()
target_link_libraries(webp ${WEBP_DEP_LIBRARIES})
-target_include_directories(webp
- PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_BINARY_DIR}
- PUBLIC $<INSTALL_INTERFACE:include>)
+target_include_directories(
+ webp
+ PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
+ $<INSTALL_INTERFACE:include>)
set_target_properties(
webp
PROPERTIES PUBLIC_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/src/webp/decode.h;\