Skip to content

Commit f9a91ae

Browse files
Fixed missing INTERFACE_INCLUDE_DIRECTORIES
turns out that webp was using include_directories instead of target_include_directories, so the install generators couldn't pick up the include path when generating WebPTargets.cmake
1 parent c6ccedf commit f9a91ae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,13 @@ configure_package_config_file(
352352
INSTALL_DESTINATION ${ConfigPackageLocation}
353353
)
354354

355+
foreach(INSTALLED_LIBRARY ${INSTALLED_LIBRARIES})
356+
target_include_directories(${INSTALLED_LIBRARY} PUBLIC
357+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/>
358+
$<INSTALL_INTERFACE:include>
359+
)
360+
endforeach()
361+
355362
install(TARGETS ${INSTALLED_LIBRARIES}
356363
EXPORT ${targets_export_name}
357364
LIBRARY DESTINATION lib COMPONENT Runtime

0 commit comments

Comments
 (0)