Skip to content

Fix CMakeLists.txt for Visual Studio and AMD64 option#336

Closed
McNeight wants to merge 1 commit intomadler:masterfrom
McNeight:master
Closed

Fix CMakeLists.txt for Visual Studio and AMD64 option#336
McNeight wants to merge 1 commit intomadler:masterfrom
McNeight:master

Conversation

@McNeight
Copy link
Copy Markdown

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
Copy Markdown
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