aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
)