mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 23:37:49 +08:00
d07d3f7da2
* [libpcap] update to 1.10.4 * [libpcap] update to 1.10.4 * [libpcap] update * [libpcap] update
38 lines
1.7 KiB
Diff
38 lines
1.7 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 58c5159..650be01 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -3238,9 +3238,12 @@ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pcap.h DESTINATION include)
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pcap-bpf.h DESTINATION include)
|
|
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)
|
|
+# Generate libpcap.pc
|
|
+if(MSVC AND NOT BUILD_SHARED_LIBS)
|
|
+ set(PACKAGE_NAME ${LIBRARY_NAME}_static)
|
|
+else()
|
|
+ set(PACKAGE_NAME ${LIBRARY_NAME})
|
|
+endif()
|
|
set(prefix ${CMAKE_INSTALL_PREFIX})
|
|
set(exec_prefix "\${prefix}")
|
|
set(includedir "\${prefix}/include")
|
|
@@ -3308,10 +3311,14 @@ if(NOT MSVC)
|
|
set(RPATH "")
|
|
endif()
|
|
endif()
|
|
- configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcap-config.in ${CMAKE_CURRENT_BINARY_DIR}/pcap-config @ONLY)
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpcap.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libpcap.pc @ONLY)
|
|
- install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/pcap-config DESTINATION bin)
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpcap.pc DESTINATION lib/pkgconfig)
|
|
+# 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)
|
|
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcap-config.in ${CMAKE_CURRENT_BINARY_DIR}/pcap-config @ONLY)
|
|
+ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/pcap-config DESTINATION bin)
|
|
+
|
|
|
|
#
|
|
# Man pages.
|