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

Change: Switch to CMake. #5

Merged
merged 2 commits into from
Dec 21, 2024
Merged

Change: Switch to CMake. #5

merged 2 commits into from
Dec 21, 2024

Conversation

PeterN
Copy link
Member

@PeterN PeterN commented Dec 21, 2024

When building with the Makefile I ran into the issue that sometimes I would need to run make clean to get a working build.

So I thought maybe it can be converted to CMake instead.

Workflows are borrowed from grfcodec. The release workflow is, of course, completely untested.

fail-fast: false
matrix:
os: [windows-latest]
arch: [x86, x64]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Building the 64 bits version with MSVC (which we didn't before), unearthed a compiler warning at line 236 of sample.cpp.

CMakeLists.txt Outdated
)


# Create grfcodec
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Create grfcodec
# Create catcodec

Workflows are borrowed from grfcodec.
Copy link
Contributor

@rubidium42 rubidium42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me

@PeterN PeterN merged commit abbab2a into OpenTTD:master Dec 21, 2024
7 checks passed
@PeterN PeterN deleted the cmake branch December 21, 2024 21:46
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.

2 participants