vcpkg/ports/libxdiff/fix-usage-error.patch
JonLiu1993 4a938d4240
[libxdiff] fix the imported target error (#35905)
Co-authored-by: vzhli17 <v-zhli17@microsoft.com>
2024-01-03 17:32:13 -08:00

16 lines
527 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 33c34c2..1d93cde 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -87,8 +87,9 @@ INSTALL (
EXPORT XDiffTargets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
- RUNTIME DESTINATION lib
+ RUNTIME DESTINATION bin
)
+target_include_directories(xdiff INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" "$<INSTALL_INTERFACE:include>")
WRITE_BASIC_PACKAGE_VERSION_FILE (
"${CMAKE_CURRENT_BINARY_DIR}/XDiff/XDiffConfigVersion.cmake"