diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a6c3f3..c7d6a6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,8 @@ if (WITH_DLIB_SUBMODULE) set(DLIB_WEBP_SUPPORT OFF) set(DLIB_TEST_COMPILE_ALL_SOURCE_CPP OFF) add_subdirectory(dlib) +else() + find_package(dlib REQUIRED) endif() set(CMAKE_AUTOMOC ON)