severin-lemaignan / gazr

3D head pose estimation using monocular vision
Other
179 stars 55 forks source link

Fix CMake warnings concerning `dlib_{INCLUDE_DIRS,LIBRARIES}` #28

Closed ptosi closed 3 years ago

ptosi commented 3 years ago

Silence the following CMake warnings:

CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/dlib/dlibConfig.cmake:42 (message):
  The variable 'dlib_INCLUDE_DIRS' is deprecated! Instead, simply use
  target_link_libraries(your_app dlib::dlib).  See
  http://dlib.net/examples/CMakeLists.txt.html for an example.

and

CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/dlib/dlibConfig.cmake:42 (message):
  The variable 'dlib_LIBRARIES' is deprecated! Instead, simply use
  target_link_libraries(your_app dlib::dlib).  See
  http://dlib.net/examples/CMakeLists.txt.html for an example.
ptosi commented 3 years ago

Note: this might actually duplicate #22 ...

severin-lemaignan commented 3 years ago

Merged, thanks!