Skip to content

Build Windows Release with CMake (part1)#61225

Merged
kevingranade merged 10 commits intoCleverRaven:masterfrom
alef:cmake-presets-part1
Oct 20, 2022
Merged

Build Windows Release with CMake (part1)#61225
kevingranade merged 10 commits intoCleverRaven:masterfrom
alef:cmake-presets-part1

Conversation

@alef
Copy link
Contributor

@alef alef commented Sep 24, 2022

Summary

None

Purpose of change

Try to align CMake build to match the release.

Describe the solution

  • Deal with some package name differing between VCPKG and other distributions
  • Use the proper way for supporting ccache
  • Add missing files to the relase

Describe alternatives you've considered

Testing

  1. Drafting this PR
  2. Watch CI build
  3. Undraft if no side-effects

Additional context

Part of discarded #60159

@github-actions github-actions bot added Code: Build Issues regarding different builds and build environments Translation I18n json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Sep 24, 2022
@alef alef force-pushed the cmake-presets-part1 branch from 1e6850e to b805302 Compare September 24, 2022 14:56
@alef alef marked this pull request as ready for review September 24, 2022 16:59
@alef alef requested a review from BrettDong as a code owner September 24, 2022 16:59
@BrettDong
Copy link
Member

I tried your branch and I can successfully build cataclysm-tiles.exe on Windows with MSVC and CMake. However I found I need to delete findSDL2_ttf.cmake in CMakeModules directory, otherwise there will be a CMake configuration error saying unable to find either target SDL2_ttf::SDL2_ttf or SDL2_ttf::SDL2_ttf-static. I guess the findSDL2_ttf.cmake in CMakeModules is too old that it does not provide a modern CMake style target for the project to consume?

@kevingranade kevingranade merged commit 3c575e5 into CleverRaven:master Oct 20, 2022
@alef alef deleted the cmake-presets-part1 branch October 20, 2022 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions Code: Build Issues regarding different builds and build environments json-styled JSON lint passed, label assigned by github actions Translation I18n

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants