Skip to content

Commit

Permalink
Replace deprecated CMake ${dlib_LIBRARIES}
Browse files Browse the repository at this point in the history
Silence the following CMake warning:

    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.
  • Loading branch information
ptosi authored and severin-lemaignan committed May 4, 2021
1 parent 2119dce commit ce6f7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ endif()
include_directories(${OpenCV_INCLUDE_DIRS})

add_library(gazr SHARED src/head_pose_estimation.cpp)
target_link_libraries(gazr ${dlib_LIBRARIES} ${OpenCV_LIBRARIES})
target_link_libraries(gazr dlib::dlib ${OpenCV_LIBRARIES})

if(WITH_ROS)

Expand Down

0 comments on commit ce6f7c9

Please sign in to comment.