summaryrefslogtreecommitdiff
path: root/cmake/WebPConfig.cmake.in
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-05-16 17:36:02 -0700
committerJames Zern <jzern@google.com>2023-05-16 17:39:50 -0700
commitcba300781f4eea9dd957990c6db3977718d4338a (patch)
tree516af7daf77e78aab85660065c8ff2cfa1f2c3f2 /cmake/WebPConfig.cmake.in
parent6cf9a76ae219e245611a676d81fd952d78a400b6 (diff)
downloadlibwebp-main.tar.gz
WebPConfig.cmake.in: use calculated include pathHEADmain
when setting WebP_INCLUDE_DIRS; this value is relative to the WebPConfig.cmake install location (${PACKAGE_PREFIX_DIR}/include) and allows the install to be relocated after creation. See also: https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html#example-generating-package-files Bug: webp:610 Change-Id: If877625e96584a9808b0bba902e3f0b2a744aa60 Fixed: webp:610
Diffstat (limited to 'cmake/WebPConfig.cmake.in')
-rw-r--r--cmake/WebPConfig.cmake.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/WebPConfig.cmake.in b/cmake/WebPConfig.cmake.in
index f3347394..c091b4ef 100644
--- a/cmake/WebPConfig.cmake.in
+++ b/cmake/WebPConfig.cmake.in
@@ -10,7 +10,9 @@ endif()
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
-set(WebP_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
+set_and_check(WebP_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
set(WEBP_INCLUDE_DIRS ${WebP_INCLUDE_DIRS})
set(WebP_LIBRARIES "@INSTALLED_LIBRARIES@")
set(WEBP_LIBRARIES "${WebP_LIBRARIES}")
+
+check_required_components(WebP)