From c069ff15866281964381e7c4a1beb46923208ff9 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 24 Nov 2022 22:38:29 +0100 Subject: [PATCH] cmake: add /usr/local/include to check include directories --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a113b15b..67236907f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,6 +203,11 @@ elseif(NINTENDO_3DS) set(N3DS TRUE) endif() +if(FREEBSD OR NETBSD OR OPENBSD OR BSDI) + list(APPEND CMAKE_REQUIRED_INCLUDES /usr/local/include) + list(APPEND CMAKE_REQUIRED_LINK_OPTIONS "-L/usr/local/lib") +endif() + # Don't mistake osx for unix if(UNIX AND NOT ANDROID AND NOT APPLE AND NOT RISCOS) set(UNIX_SYS ON)