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

Move check for PostgreSQL 9.3 to CMake from the source file #1138

Merged
merged 1 commit into from
Mar 31, 2024

Conversation

vadz
Copy link
Member

@vadz vadz commented Mar 27, 2024

Unfortunately pg_config.h is not available in all installations under
Windows, so don't rely on being able to include it and instead check
POSTGRESQL_VERSION in CMake and define SOCI_POSTGRESQL_NO_LO64 if
necessary.

This has an additional advantage of allowing to test this code easily
even when using PostgreSQL >= 9.3 by turning on this option.

Unfortunately pg_config.h is not available in all installations under
Windows, so don't rely on being able to include it and instead check
POSTGRESQL_VERSION in CMake and define SOCI_POSTGRESQL_NO_LO64 if
necessary.

This has an additional advantage of allowing to test this code easily
even when using PostgreSQL >= 9.3 by turning on this option.
@vadz vadz merged commit 74919e4 into SOCI:master Mar 31, 2024
16 checks passed
@vadz vadz deleted the cmake_no_lo64 branch March 31, 2024 23:18
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.

1 participant