cmake: add /usr/local/include to check include directories

main
Anonymous Maarten 2022-11-24 22:38:29 +01:00
parent cd13600944
commit c069ff1586
1 changed files with 5 additions and 0 deletions

View File

@ -203,6 +203,11 @@ elseif(NINTENDO_3DS)
set(N3DS TRUE) set(N3DS TRUE)
endif() 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 # Don't mistake osx for unix
if(UNIX AND NOT ANDROID AND NOT APPLE AND NOT RISCOS) if(UNIX AND NOT ANDROID AND NOT APPLE AND NOT RISCOS)
set(UNIX_SYS ON) set(UNIX_SYS ON)