aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-06-25 17:00:08 -0700
committerGuy Harris <guy@alum.mit.edu>2016-06-25 17:00:08 -0700
commit5bcab1bae53b572854287eca0282387ddb7fb37f (patch)
tree978b20f88dc6799ffafb1c23331f4efc4c0bf082
parent8551643ffe6c83e3916c550d3fed01bd0925cb44 (diff)
The project name needs to be pcap.
There are references to variables with names beginning with pcap_, so the project needs to be called pcap. The *library* should be called wpcap on Windows and pcap on UN*X.
-rw-r--r--CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 898948e1..d28f196e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,14 +1,14 @@
cmake_minimum_required( VERSION 2.8.8 )
+project( pcap )
#
-# Call it wpcap on Windows, for backwards compatibility.
+# Call the library "wpcap" on Windows, for backwards compatibility.
#
if( WIN32 )
- set( PROJECT_NAME wpcap )
+ set( LIBRARY_NAME wpcap )
else()
- set( PROJECT_NAME pcap )
+ set( LIBRARY_NAME pcap )
endif()
-project( ${PROJECT_NAME} )
###################################################################
# Parameters
@@ -425,7 +425,7 @@ source_group("Header Files" FILES ${PROJECT_SOURCE_LIST_H})
# Register targets
######################################
-add_library(${PROJECT_NAME}
+add_library(${LIBRARY_NAME}
${PROJECT_SOURCE_LIST_C}
${CMAKE_CURRENT_BINARY_DIR}/grammar.c
${CMAKE_CURRENT_BINARY_DIR}/scanner.c
@@ -433,7 +433,7 @@ add_library(${PROJECT_NAME}
)
if( WIN32 )
- target_link_libraries ( ${PROJECT_NAME}
+ target_link_libraries ( ${LIBRARY_NAME}
packet
ws2_32
)