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

Fix linker error when building proj-sys in debug mode with MSVC #83

Merged
merged 2 commits into from
May 6, 2021

Conversation

lorenzo25832
Copy link
Contributor

The proj CMakeLists.txt contains instructions to add a _d suffix to the compiled library in certain situations:
https://github.com/OSGeo/PROJ/blob/e3d7e18f988230973ced5163fa2581b6671c8755/src/CMakeLists.txt#L86

Proj-sys does not expect this suffix and fails to find the library. This results in build failure.
This PR adds support for the suffixed library.

@urschrei
Copy link
Member

urschrei commented May 6, 2021

bors try

bors bot added a commit that referenced this pull request May 6, 2021
@urschrei
Copy link
Member

urschrei commented May 6, 2021

Hi @geogcrs25832, thanks for this! I think this is uncontroversial (I have no expertise with MSVC, though), and gets us a step closer to stable builds on that platform. Could you add an entry to the changelog and I'll merge.

@bors
Copy link
Contributor

bors bot commented May 6, 2021

try

Build succeeded:

@urschrei
Copy link
Member

urschrei commented May 6, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented May 6, 2021

Build succeeded:

@bors bors bot merged commit 7dd34c2 into georust:master May 6, 2021
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.

2 participants