-
Notifications
You must be signed in to change notification settings - Fork 5
Fix macOS build compatibility #4
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
base: main
Are you sure you want to change the base?
Fix macOS build compatibility #4
Conversation
| @@ -63,6 +63,15 @@ std::string Utils::RandomAccountID() | |||
| return r; | |||
| } | |||
|
|
|||
| void GetLocalTime(struct tm& timeinfo, time_t& rawtime) | |||
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 would prefer to use localtime_r and then #define for localtime_s (or make this function constexpr if possible)
| set(CMAKE_CXX_STANDARD 17) | ||
|
|
||
| if (NOT DEFINED GIMUSRV_FRONTEND) | ||
| set(GIMUSRV_FRONTEND "STANDALONE") |
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.
Please make a new CMake preset for your target platform (which uses the VCPKG_ROOT env variable) rather than allowing the build to work without a specific frontend preset.
|
Please address the reviews and merge the last changes on the repo, the code builds fine under Windows so I will merge it once the conflicts are resolved, thanks! |
|
I can do this but since I don't have a macOS, I wouldn't be able to test. I'm sure plenty of things will break though... It's never easy |
I'm running on macOS, I should be able to sort it out. I just have not found the time to do it yet 👍. Its not needed in anyway for Windows, I just thought of this so that I could build the server on my laptop. |
@arves100