aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/FindPacket.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/FindPacket.cmake')
-rw-r--r--cmake/Modules/FindPacket.cmake26
1 files changed, 13 insertions, 13 deletions
diff --git a/cmake/Modules/FindPacket.cmake b/cmake/Modules/FindPacket.cmake
index 7253d226..8224cd3f 100644
--- a/cmake/Modules/FindPacket.cmake
+++ b/cmake/Modules/FindPacket.cmake
@@ -28,14 +28,14 @@
#
# This module defines the following variables:
#
-# PACKET_INCLUDE_DIR - absolute path to the directory containing Packet32.h.
+# Packet_INCLUDE_DIR - absolute path to the directory containing Packet32.h.
#
-# PACKET_LIBRARY - relative or absolute path to the Packet library to
+# Packet_LIBRARY - relative or absolute path to the Packet library to
# link with. An absolute path is will be used if the
# Packet library is not located in the compiler's
# default search path.
-# PACKET_FOUND - TRUE if the Packet library *and* header are found.
+# Packet_FOUND - TRUE if the Packet library *and* header are found.
#
# Hints and Backward Compatibility
# ================================
@@ -72,7 +72,7 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
file(WRITE "${CMAKE_BINARY_DIR}/archdetect.c" "${archdetect_c_code}")
try_compile(
- IsArm64
+ IsArm64
"${CMAKE_BINARY_DIR}/archdetect"
"${CMAKE_BINARY_DIR}/archdetect.c"
)
@@ -86,24 +86,24 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
endif()
# Find the header
-find_path(PACKET_INCLUDE_DIR Packet32.h
+find_path(Packet_INCLUDE_DIR Packet32.h
PATH_SUFFIXES include Include
)
# Find the library
-find_library(PACKET_LIBRARY
+find_library(Packet_LIBRARY
NAMES Packet packet
)
-# Set PACKET_FOUND to TRUE if PACKET_INCLUDE_DIR and PACKET_LIBRARY are TRUE.
+# Set Packet_FOUND to TRUE if Packet_INCLUDE_DIR and Packet_LIBRARY are TRUE.
include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(PACKET
+find_package_handle_standard_args(Packet
DEFAULT_MSG
- PACKET_INCLUDE_DIR
- PACKET_LIBRARY
+ Packet_INCLUDE_DIR
+ Packet_LIBRARY
)
-mark_as_advanced(PACKET_INCLUDE_DIR PACKET_LIBRARY)
+mark_as_advanced(Packet_INCLUDE_DIR Packet_LIBRARY)
-set(PACKET_INCLUDE_DIRS ${PACKET_INCLUDE_DIR})
-set(PACKET_LIBRARIES ${PACKET_LIBRARY})
+set(Packet_INCLUDE_DIRS ${Packet_INCLUDE_DIR})
+set(Packet_LIBRARIES ${Packet_LIBRARY})