diff --git a/openbr/plugins/dlib.cmake b/openbr/plugins/dlib.cmake index 958af62..9c594ad 100644 --- a/openbr/plugins/dlib.cmake +++ b/openbr/plugins/dlib.cmake @@ -3,6 +3,8 @@ set(BR_WITH_DLIB OFF CACHE BOOL "Build with DLib") if(${BR_WITH_DLIB}) find_package(DLib REQUIRED) + add_definitions(-DDLIB_NO_GUI_SUPPORT) + set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} plugins/dlib.cpp) set(BR_THIRDPARTY_SRC ${BR_THIRDPARTY_SRC} ${DLib_DIR}/dlib/all/source.cpp)