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

Fixing static builds on Windows #5713

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Fixing static builds on Windows #5713

merged 1 commit into from
Aug 13, 2024

Conversation

natevm
Copy link
Contributor

@natevm natevm commented Aug 12, 2024

It seems that even with BUILD_SHARED_LIBS set to "OFF", this line here emits dlimports:

# define P2T_DLL_SYMBOL P2T_COMPILER_DLLIMPORT

I've added a check to see if BUILD_SHARED_LIBS is ON before defining P2T_DLL_SYMBOL as P2T_COMPILER_DLLIMPORT, and now for static builds this symbol is correctly undefined.

Copy link
Member

@kimkulling kimkulling left a comment

Choose a reason for hiding this comment

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

Looks fine.

@kimkulling kimkulling merged commit 09b981d into assimp:master Aug 13, 2024
8 checks passed
@kimkulling kimkulling added the Build Global flag to mark build relates topics label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Global flag to mark build relates topics
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants