]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
pulling in Russ's changes
authorJosh <jrosenba@cisco.com>
Thu, 20 Nov 2014 00:12:07 +0000 (18:12 -0600)
committerJosh <jrosenba@cisco.com>
Thu, 20 Nov 2014 00:12:07 +0000 (18:12 -0600)
cmake/FindDNET.cmake

index 73ac92ae7736cc2aa91f80f43dfe623e0cb8e7cb..e0a31ef2c1b09d02cb73c1c135996e9223798956 100644 (file)
@@ -29,8 +29,11 @@ find_path(DNET_INCLUDE_DIR
   HINTS ENV DNETDIR
 )
 
-# Define HAVE_DUMBNET_H for config.h generation if we found libdumnet headers.
-set_if_true(DNET_INCLUDE_DIR HAVE_DUMBNET_H)
+# If we found libdument header, define HAVE_DUMBNET_H for config.h generation.
+if (DNET_INCLUDE_DIR)
+    set(HAVE_DUMBNET_H "YES")
+endif()
+
 
 # Search for library twice.  The first time using the custom path, second time
 # using standard paths
@@ -50,11 +53,9 @@ find_path(DNET_INCLUDE_DIR
   HINTS ENV DNETDIR
 )
 
-# Search for library twice.  The first time using the custom path, second time
-# using standard paths
 find_library(DNET_LIBRARIES
     NAMES dnet
-    HINTS ${DNET_LIBRARIES_DIR} # user specified option in ./configure_cmake.sh
+    HINTS ${DNET_LIBRARIES_DIR}
     NO_DEFAULT_PATH
     NO_CMAKE_ENVIRONMENT_PATH
 )