Skip to content

Commit

Permalink
pkg-config: Drop broken include path
Browse files Browse the repository at this point in the history
The legacy `includedir` was removed in 4.0 (opencv#12477) but it was not removed from the `.pc` file.

This causes issues when trying to link against OpenCV using pkg-config in CMake.
  • Loading branch information
jtojnar authored May 25, 2020
1 parent 4e97c69 commit 765f333
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/templates/opencv-XXX.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir_old=@includedir@/opencv
includedir_new=@includedir@
includedir=@includedir@

Name: OpenCV
Description: Open Source Computer Vision Library
Version: @OPENCV_VERSION_PLAIN@
Libs: @OPENCV_PC_LIBS@
Libs.private: @OPENCV_PC_LIBS_PRIVATE@
Cflags: -I${includedir_old} -I${includedir_new}
Cflags: -I${includedir}

0 comments on commit 765f333

Please sign in to comment.