Skip to content

cmake: clean cached INTERNAL variable used for 3rdparty deps#18993

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:issue_18984
Dec 3, 2020
Merged

cmake: clean cached INTERNAL variable used for 3rdparty deps#18993
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:issue_18984

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Dec 2, 2020

Some vars for bundled 3rdparty are set through CACHE INTERNAL "". It is necessary to avoid conflicts with following "find_package()" calls for the same libraries (including other components, like TIFF finds ZLIB or VTK finds ZLIB, JPEG, etc).

Clear such INTERNAL vars before trying "system" library.

resolves #18984

P.S. VTK doesn't really need to find JPEG (it is not used with shared libraries), but this approach is necessary to avoid breaking of our JPEG integration. See #18541

@opencv-pushbot opencv-pushbot merged commit 773ccc4 into opencv:3.4 Dec 3, 2020
@alalek alalek mentioned this pull request Dec 4, 2020
@alalek alalek mentioned this pull request Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants