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

CMake: Replace CMAKE_COMPILER_IS_MINGW by MINGW #4311

Merged
merged 1 commit into from Dec 29, 2021

Conversation

SirLynix
Copy link
Contributor

@SirLynix SirLynix commented Dec 28, 2021

Assimp can't detect MinGW with CMake >=3.21 because CMAKE_COMPILER_IS_MINGW got removed, thus won't set some flags such as -Wa,-mbig-obj which are required for compilation.

This commit replaces CMAKE_COMPILER_IS_MINGW with MINGW variable (which appeared in CMake 3.2, so this should be fine).

Please note I haven't tested if that android hack for MinGW still works.

@SirLynix
Copy link
Contributor Author

Has been tested here: https://github.com/xmake-io/xmake-repo/runs/4650952688

@kimkulling
Copy link
Member

Look good. I will merge it when the CI-build is ready.

@kimkulling kimkulling merged commit c882731 into assimp:master Dec 29, 2021
@kimkulling
Copy link
Member

Merged, thanks a lot for your contribution.

@SirLynix SirLynix deleted the fix-mingw branch December 29, 2021 16:35
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.

None yet

2 participants