From d5f4cfd3b0dad52c62af287a0ea08dcabdcc539f Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Thu, 10 Sep 2020 08:55:38 +0200 Subject: [PATCH] util: Add the include and libs for FreeBSD too Signed-off-by: Emmanuel Vadot --- tests/util/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt index b4fe9966b..05099955e 100644 --- a/tests/util/CMakeLists.txt +++ b/tests/util/CMakeLists.txt @@ -124,7 +124,7 @@ else() ) endif() -if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD") # One needs to have at least one hardware driver present, otherwise # there is no point compiling just the dispatcher. if(PIGLIT_BUILD_DMA_BUF_TESTS) @@ -163,7 +163,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") list(APPEND UTIL_GL_LIBS ${WAYLAND_LDFLAGS}) endif() -endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD") if(MSVC) list(APPEND UTIL_SOURCES msvc/getopt.c) -- GitLab