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 CMakeLists.txt for Visual Studio and AMD64 option #336

Closed
wants to merge 1 commit into from

Conversation

McNeight
Copy link

In trying to use CMake with VS2017 x64 to build with the hand tuned assembler version of inffast.c, I ran into the problem described in https://stackoverflow.com/questions/29505121/cmake-zlib-build-on-windows.

I found the second solution ("You need contrib\masmx64\inffas8664.c included in visual studio project file") to be the most helpful, and modified the CMakeLists.txt file to optionally append that file to the ZLIB_SRCS list if both MSVC and AMD64 are true. This adds inffas8664.c to the zlib and zlibstatic projects, and both build without any errors in all configurations for x64.

@McNeight
Copy link
Author

McNeight commented Feb 6, 2018

'develop' branch no longer contains inffas8664.c; comment for removal states "Remove old assembler code in which bugs have manifested."

Closing pull request as obsolete.

@McNeight McNeight closed this Feb 6, 2018
@Neustradamus Neustradamus mentioned this pull request Jan 1, 2025
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