Closed DominicD closed 2 years ago
Hey, thanks for the PR! It definitely makes adapting the template easier. There seem to be some failed CI tests - could you run
cmake-format
(or the CMake targetfix-format
) and check if the use of${CMAKE_PROJECT_NAME}
is correct?
Currently I am not able to run cmake-format I will first have to figure out how that works.
Hey, thanks for the PR! It definitely makes adapting the template easier. There seem to be some failed CI tests - could you run
cmake-format
(or the CMake targetfix-format
) and check if the use of${CMAKE_PROJECT_NAME}
is correct?Currently I am not able to run cmake-format I will first have to figure out how that works.
pip install cmakelang
cmake-format -i *.cmake ...
Currently I am not able to run cmake-format I will first have to figure out how that works.
The easiest way to format all the code (cmake /C++) should be:
# configure tests (or "all" targets using `cmake -S all -B build`)
cmake -S test -B build/test
# run the `fix-format` target
cmake --build build/test --target fix-format
Of course you should have clang-format and cmake-format installed as shown above.
@DominicD is the PR still active? I would be happy to merge once CI checks pass. IMO the best approach would be to change CMAKE_PROJECT_NAME
back to Greeter
and run the formatting target as mentioned above.
@DominicD is the PR still active? I would be happy to merge once CI checks pass. IMO the best approach would be to change
CMAKE_PROJECT_NAME
back toGreeter
and run the formatting target as mentioned above.
@TheLartians I am very sorry but I had no time yet to do it. I hope I will find some time this week.
resolves #133