diff options
author | James Zern <jzern@google.com> | 2023-05-16 17:36:02 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2023-05-16 17:39:50 -0700 |
commit | cba300781f4eea9dd957990c6db3977718d4338a (patch) | |
tree | 516af7daf77e78aab85660065c8ff2cfa1f2c3f2 /CMakeLists.txt | |
parent | 6cf9a76ae219e245611a676d81fd952d78a400b6 (diff) | |
download | libwebp-main.tar.gz |
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 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b7e8bf6a..21f0eae2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -743,7 +743,8 @@ endif() configure_package_config_file( ${CMAKE_CURRENT_SOURCE_DIR}/cmake/WebPConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/WebPConfig.cmake - INSTALL_DESTINATION ${ConfigPackageLocation}) + INSTALL_DESTINATION ${ConfigPackageLocation} + PATH_VARS CMAKE_INSTALL_INCLUDEDIR) # Install the generated CMake files. install(FILES "${CMAKE_CURRENT_BINARY_DIR}/WebPConfigVersion.cmake" |