[polyclipping] Fix cmake patch for include directory (#13668)

This commit is contained in:
Fabien Péan 2020-09-23 01:03:27 +02:00 committed by GitHub
parent 7339aea6f5
commit 03d760cfda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
Source: polyclipping Source: polyclipping
Version: 6.4.2 Version: 6.4.2
Port-Version: 5 Port-Version: 6
Homepage: https://sourceforge.net/projects/polyclipping/ Homepage: https://sourceforge.net/projects/polyclipping/
Description: The Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons. Description: The Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.

View File

@ -2,7 +2,7 @@ diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index f0ed7e8..a5ed444 100644 index f0ed7e8..a5ed444 100644
--- a/cpp/CMakeLists.txt --- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt
@@ -19,3 +19,11 @@ INSTALL (TARGETS polyclipping LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") @@ -19,3 +19,12 @@ INSTALL (TARGETS polyclipping LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
INSTALL (FILES "${PCFILE}" DESTINATION "${CMAKE_INSTALL_PKGCONFIGDIR}") INSTALL (FILES "${PCFILE}" DESTINATION "${CMAKE_INSTALL_PKGCONFIGDIR}")
SET_TARGET_PROPERTIES(polyclipping PROPERTIES VERSION 22.0.0 SOVERSION 22 ) SET_TARGET_PROPERTIES(polyclipping PROPERTIES VERSION 22.0.0 SOVERSION 22 )
@ -14,3 +14,4 @@ index f0ed7e8..a5ed444 100644
+ NAMESPACE polyclipping:: + NAMESPACE polyclipping::
+ DESTINATION share/polyclipping + DESTINATION share/polyclipping
+) +)
+target_include_directories(polyclipping PUBLIC $<INSTALL_INTERFACE:include>)