forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libtins] Fix include header file cannot be found (microsoft#34461)
- Loading branch information
1 parent
db8aa42
commit 007d462
Showing
5 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 94bc8bf..14a15e9 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -211,6 +211,7 @@ ADD_LIBRARY( | ||
) | ||
|
||
TARGET_LINK_LIBRARIES(tins ${PCAP_LIBRARY} ${OPENSSL_LIBRARIES} ${LIBTINS_OS_LIBS}) | ||
+target_include_directories(tins PUBLIC $<INSTALL_INTERFACE:include>) | ||
|
||
SET_TARGET_PROPERTIES(tins PROPERTIES OUTPUT_NAME tins) | ||
SET_TARGET_PROPERTIES(tins PROPERTIES VERSION ${LIBTINS_VERSION} SOVERSION ${LIBTINS_VERSION} ) | ||
diff --git a/libtins.pc.in b/libtins.pc.in | ||
index e9a5c29..c7e3f6c 100644 | ||
--- a/libtins.pc.in | ||
+++ b/libtins.pc.in | ||
@@ -7,4 +7,4 @@ Name: libtins | ||
Description: C++ packet crafting, sniffing and interpretation library. | ||
Version: @pkgconfig_version@ | ||
Libs: -L${libdir} -ltins | ||
-Cflags: -I${includedir}/tins | ||
+Cflags: -I${includedir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters