vcpkg/ports/libpcap/0001-fix-package-name.patch
almikhayl 9574e60a26
[libpcap] Fix pkgconfig libs and include path (#9426)
* [libpcap] Fix pkgconfig libs and include path

* [libpcap] use vcpkg_fixup_pkgconfig instead of homegrown

* Update ports/libpcap/portfile.cmake

* Update ports/libpcap/CONTROL

* Update ports/libpcap/portfile.cmake

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2020-06-11 01:02:50 -07:00

13 lines
532 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 55b93f1..f4f9d51 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2358,7 +2358,6 @@ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pcap-namedb.h DESTINATION include)
# On UN*X, and on Windows when not using MSVC, generate libpcap.pc and
# pcap-config and process man pages and arrange that they be installed.
if(NOT MSVC)
- set(PACKAGE_NAME ${LIBRARY_NAME})
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix "\${prefix}")
set(includedir "\${prefix}/include")