MaxScale/cmake/FindLibUUID.cmake
Markus Mäkelä 930be8d77a
Fix CMake problems in system test
The paths were wrong in the scripts used to run tests. The same problem
was in the CMake files that used CMAKE_SOURCE_DIR instead of
CMAKE_CURRENT_SOURCE_DIR.

Added missing check for BUILD_SYSTEM_TESTS in avrorouter for the
workaround to building without all dependencies present.
2018-08-20 13:56:58 +03:00

18 lines
578 B
CMake

# This CMake file tries to find the libuuid and libuuid-develop
# The following variables are set:
# LIBUUID_LIBRARIES - System has libuuid
# LIBUUID_HEADERS - The libuuid headers
find_library(LIBUUID_LIBRARIES NAMES uuid)
if (NOT LIBUUID_LIBRARIES)
message(STATUS "Could not find libuuid library")
else()
message(STATUS "Found libuuid ${LIBUUID_LIBRARIES}")
endif()
find_path(LIBUUID_HEADERS uuid.h PATH_SUFFIXES uuid/)
if (NOT LIBUUID_HEADERS)
message(STATUS "Could not find libuuid headers")
else()
message(STATUS "Found libuuid headers ${LIBUUID_HEADERS}")
endif()