Skip to content

cmake options verification - #13367

Merged
alalek merged 4 commits into
opencv:3.4from
mshabunin:cmake-verify
Dec 7, 2018
Merged

alalek merged 4 commits into
opencv:3.4from
mshabunin:cmake-verify

Conversation

@mshabunin

@mshabunin mshabunin commented Dec 5, 2018 •

Copy link
Copy Markdown
Contributor

This pullrequest changes

Enabling option ENABLE_CONFIG_VERIFICATION forces all WITH_* options to become non-optional, configuration will fail if WITH_XXX is turned ON but corresponding dependency can not be found or vice versa. Can be useful for package maintainers and automated CI builds.

  • ocv_option: added VERIFY parameter key
  • ocv_option: parameter key IF renamed to VISIBLE_IF
  • wrapped all lines in WITH options block in root CMakeLists.txt, added explicit VISIBLE_IF TRUE in some cases to make definitions unified

@mshabunin
mshabunin requested a review from alalek December 6, 2018 14:27
@alalek
alalek merged commit 05131af into opencv:3.4 Dec 7, 2018
@alalek alalek mentioned this pull request Dec 9, 2018
@mshabunin
mshabunin deleted the cmake-verify branch February 26, 2019 12:11
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
* Added dependency verification mechanism for cmake
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.

2 participants