# evaluating cmake

**URL:** <https://discourse.cmake.org/t/evaluating-cmake/2322>\
**Category:** Code\
**Tags:** gen:makefiles, gen:ninja, os:linux\
**Created:** [December 9, 2020, 12:20pm UTC](https://discourse.cmake.org/t/evaluating-cmake/2322 "2020-12-09T12:20:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Massimiliano\_Cialdi](https://discourse.cmake.org/user_avatar/discourse.cmake.org/massimiliano_cialdi/32/924_2.png) [@Massimiliano\_Cialdi](https://discourse.cmake.org/u/Massimiliano_Cialdi)\
**Post date:** [December 9, 2020, 9:27pm UTC](https://discourse.cmake.org/t/evaluating-cmake/2322/3 "2020-12-09T21:27:27Z")

</div>

> [@ben.boeckel](#):
>
> For extracting git information at build time, I’ve done it before [here](https://github.com/Kitware/sprokit/blob/master/src/sprokit/CMakeLists.txt) though it is dependent on the `sprokit_configure_file` which isn’t complicated, but it is tricky to get right.

For this point I found another solution, for which I made another post: [express the right dependencies in CMake](https://discourse.cmake.org/t/express-the-right-dependencies-in-cmake/2333)  
There are attached files, so you can evaluate if it is a “valid” solution (and maybe give me an answer if you know it 😅)

I will analyze and try the solution that you propose in the next few days.

best regards  
Max

---

_[View the full topic](https://discourse.cmake.org/t/evaluating-cmake/2322)._
