-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Support for building on native windows with cmake #2052
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd use #ifndef _WIN32
etc. instead here. gettimeofday()
is in sys/time.h
on macOS too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure you reviewed the complete diff? I am using #ifndef WINDOWS
.
This PR aims to support natively building on windows via cmake.
Currently, a debug and release build should work on a windows machine with the required dependencies built from source with cmake. The only external dependency that has to be manually installed is OpenAL.
On top of that, multiple instances of undefined behavior and/or unportable code were fixed.
The cmake option ENABLE_STEAMWORKS was also added and building without steamworks is supported.