Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

influxdb-cxx: add recipe #19148

Merged
merged 4 commits into from
Feb 9, 2024

Conversation

toge
Copy link
Contributor

@toge toge commented Aug 11, 2023

Specify library name and version: influxdb-cxx/0.7.1

Try to close #19125.


@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link
Contributor

@jcar87 jcar87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @toge - recipe looks great!! Just one small question

tc.cache_variables["INFLUXCXX_TESTING"] = False
tc.cache_variables["INFLUXCXX_WITH_BOOST"] = self.options.boost
if self.options.shared:
tc.preprocessor_definitions["InfluxDB_EXPORTS"] = 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one looks a little unusual - is it not possible to build the shared variant without the consumers defining preprocessor definitions externally?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be necessary as the define is handled by CMakes GenerateExportHeader. However, there are reports of issues on MSVC. I wasn't able to reproduce the issue, but I'm no MSVC dev.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcar87
You are right.
I don't understand why this definition is required.
But without this, there are compilation errors on MSVC shared build.

https://c3i.jfrog.io/c3i/misc/logs/pr/19148/1-windows-visual_studio/influxdb-cxx/0.7.1//f59f556ebd620e0f58fe3eabfec9529d6418a829-build.txt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @toge - there is indeed a pre-existing issue, I've updated the recipe to reference it

I've had a chance to investigate the root cause and made a comment here:
offa/influxdb-cxx#194 (comment)

Copy link

stale bot commented Dec 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@conan-center-bot

This comment has been minimized.

danimtb
danimtb previously approved these changes Feb 8, 2024
int main()
{
try {
auto influxdb = influxdb::InfluxDBFactory::Get("xyz://foobar");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed this to not reference localhost - in the odd chance something is actually running. Test packages in Conan center must not make network requests to any resource whatsover.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 5 (917bbf582e16f6618cf323f255f701f60ab0b4f9):

  • influxdb-cxx/0.7.2:
    All packages built successfully! (All logs)

Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 5 (917bbf582e16f6618cf323f255f701f60ab0b4f9):

  • influxdb-cxx/0.7.2:
    All packages built successfully! (All logs)

@conan-center-bot conan-center-bot merged commit d350f31 into conan-io:master Feb 9, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[request] influxdb-cxx/0.7.1
7 participants