Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

when unable to find mongo driver stop cmake #7306

Merged
merged 2 commits into from
May 8, 2019

Conversation

spoonincode
Copy link
Contributor

Change Description

Previously the mongo plugin cmake would simply print a message that it couldn't find a mongo c driver and carry on. But this means compilation of nodeos will fail because BUILD_MONGO_DB_PLUGIN is still set to ON so nodeos cmake will try to link against the plugin that is not built.

Can't just set BUILD_MONGO_DB_PLUGIN to OFF here because of cmake scoping rules

Might as well just error out; I don't think many people will set this to ON and then want the build to plow ahead anyways

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

Previously the mongo plugin cmake would simply print a message that it couldn't find a mongo c driver and carry on. But this means compilation of nodeos will fail because BUILD_MONGO_DB_PLUGIN is still set to ON so nodeos cmake will try to link against the plugin that is not built.

Can't just set BUILD_MONGO_DB_PLUGIN to OFF here because of cmake scoping rules

Might as well just error out; I don't think many people will set this to ON and then want the build to plow ahead anyways
@spoonincode spoonincode merged commit be76897 into develop May 8, 2019
@spoonincode spoonincode deleted the stop_cmake_unable_find_mongo branch May 8, 2019 15:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants