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 GSL to work with vcpkg installation (used in test_latest.yml) #1526

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

mstimberg
Copy link
Member

@mstimberg mstimberg commented Apr 16, 2024

On test_latest.yml, we use Microsoft's vcpkg manager to install the GSL for all operating systems. Until recently (see #1523), we weren't actually running the GSL tests, so it went unnoticed that this doesn't quite work. In contrast to the installation of GSL via conda, we need to manually set the path with the GSL.directory preference. During fixing this, I also realized that our current GSL code did only use this preference for the include path with isn't enough, we only need it for the library path (and the DLL path on Windows).
These tests show that it now runs correctly: https://github.com/brian-team/brian2/actions/runs/8706379543
(The checks in this PR only show that it didn't break anything for code that doesn't need the GSL.directory preference).

@mstimberg mstimberg merged commit 7d31328 into master Apr 17, 2024
81 checks passed
@mstimberg mstimberg deleted the fix_gsl_with_vcpkg branch April 17, 2024 07:59
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