setup-cpp icon indicating copy to clipboard operation
setup-cpp copied to clipboard

Default to CMake 4

Open ClausKlein opened this issue 6 months ago • 1 comments

The current newest CMake version is 4.0.x and this is needed for import std cxx_modules!

bash-5.2$ cmake --version cmake version 4.0.3

CMake suite maintained and supported by Kitware (kitware.com/cmake). bash-5.2$

ClausKlein avatar Jun 20 '25 11:06 ClausKlein

You can pass the version 4.0.3 to use CMake 4 without waiting for the default version to get updated

      - name: Setup Cpp
        uses: aminya/setup-cpp@v1
        with:
          cmake: 4.0.3

CMake 4 has some breaking changes that apparently removes the support for the projects that have not been updated to support CMake 3.5. That's why I haven't updated to 4 yet. Is there a series of packages that will not work if CMake gets updated?

https://cmake.org/cmake/help/latest/release/4.0.html#id15

aminya avatar Jun 24 '25 17:06 aminya