Squashed commit of the following:
commit
39849097efee6f2e6cad02c598424ea46792d8c1
Author: Michael Altizer <mialtize@cisco.com>
Date: Fri Mar 20 12:17:19 2020 -0400
build: Don't try to use libuuid headers/libraries when not found
The updated FindUUID macros properly set the libuuid variables to
NOTFOUND, which exposed the places where they were being unconditionally
used. This properly conditionalizes that usage.
Thanks to James Lay <jlay@slave-tothe-box.net> for reporting the issue.
${OPENSSL_CRYPTO_LIBRARY}
${PCAP_LIBRARIES}
${PCRE_LIBRARIES}
- ${UUID_LIBRARY}
${ZLIB_LIBRARIES}
)
${OPENSSL_INCLUDE_DIR}
${PCAP_INCLUDE_DIR}
${PCRE_INCLUDE_DIR}
- ${UUID_INCLUDE_DIR}
${ZLIB_INCLUDE_DIRS}
)
LIST(APPEND EXTERNAL_INCLUDES ${SAFEC_INCLUDE_DIR})
endif ()
+if ( HAVE_UUID )
+ LIST(APPEND EXTERNAL_LIBRARIES ${UUID_LIBRARY})
+ LIST(APPEND EXTERNAL_INCLUDES ${UUID_INCLUDE_DIR})
+endif ()
+
if ( HS_FOUND )
LIST(APPEND EXTERNAL_LIBRARIES ${HS_LIBRARIES})
LIST(APPEND EXTERNAL_INCLUDES ${HS_INCLUDE_DIRS})