Skip to content

Commit b46a3c4

Browse files
[CMake]: Adapted Pcap++ Make Available script to the new v25.05 (#28)
They re-tagged their v25.05 tag. The old tag from 2025-05-14 used CMake 3.14, while the new tag from 2025-05-15 uses CMake 3.12. This made it necessary to set the PCAPPP_INSTALL option as a cache variable (See CMake Policy CMP0077)
1 parent 7bca8d4 commit b46a3c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

thirdparty/pcapplusplus/pcapplusplus_make_available.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ FetchContent_Declare(pcapplusplus
55
DOWNLOAD_EXTRACT_TIMESTAMP FALSE
66
)
77

8-
set(PCAPPP_INSTALL ON)
8+
# 2025-05-15: The PCAPPP_INSTALL must be a cache variable, as
9+
# Pacp++ v25.05 uses CMake 3.12 policies. These old CMake versions
10+
#prevented setting options from normal variables.
11+
#https://cmake.org/cmake/help/latest/policy/CMP0077.html
12+
set(PCAPPP_INSTALL ON CACHE BOOL "" FORCE)
913

1014
message(STATUS "Fetching Pcap++...")
1115
FetchContent_MakeAvailable(pcapplusplus)

0 commit comments

Comments
 (0)