--- CMakeLists.txt.orig 2016-12-09 13:36:53.000000000 +0300 +++ CMakeLists.txt 2016-12-26 17:57:38.831330000 +0300 @@ -66,6 +66,10 @@ ENDIF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) ENDIF(UNIX) +# Add /usr/local/include to search path +IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") + SET(CMAKE_REQUIRED_INCLUDES "/usr/local/include" "/usr/include") +ENDIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") # detect top level projects IF(USE_SYSTEM_YAJL)