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
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
)