]> The Tcpdump Group git mirrors - tcpdump/commitdiff
To search for a library under multiple names, say "NAMES name1 name2 ...".
authorGuy Harris <[email protected]>
Mon, 29 Apr 2019 19:06:34 +0000 (12:06 -0700)
committerGuy Harris <[email protected]>
Mon, 29 Apr 2019 19:06:34 +0000 (12:06 -0700)
cmake/Modules/FindPCAP.cmake

index 6b0fbb6ede128a39549e4eb775b5f6f808c26be3..855db6517d973b310a1adab2db6ab50da55f6214 100644 (file)
@@ -36,7 +36,7 @@ if(WIN32)
     #
     set(CMAKE_LIBRARY_ARCHITECTURE "x64")
   endif()
-  find_library(PCAP_LIBRARY pcap wpcap)
+  find_library(PCAP_LIBRARY NAMES pcap wpcap)
 
   #
   # Do the standard arg processing, including failing if it's a