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

Set include path in build script, not source #95

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

marktsuchida
Copy link
Member

Before this change, SWIG would pick up MMCore/MMDevice headers from an mmCoreAndDevices directory outside of the pymmcore directory, if present. This is because SWIG's search path for %include contains the current directory before any directories given by -I flags (so %include "../mmCoreAndDevices/..." was problematic).

Includes by the compiler (#include) may not have this problem but let's use the same method.

Before this change, SWIG would pick up MMCore/MMDevice headers from an
mmCoreAndDevices directory outside of the pymmcore directory, if
present. This is because SWIG's search path for %include contains the
current directory before any directories given by -I flags (so %include
"../mmCoreAndDevices/..." was problematic).

Includes by the compiler (#include) may not have this problem but let's
use the same method.
@marktsuchida marktsuchida merged commit 80ce77b into main Oct 25, 2023
7 checks passed
@marktsuchida marktsuchida deleted the fix-include-path branch October 25, 2023 19:29
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