[CMake] How to assign version numbers from a source header to CMake variables?

SF Markus Elfring elfring at users.sourceforge.net
Wed Jan 12 06:45:57 EST 2011


> Are you using source control?

Yes. - But there are challenges to query content management systems in a 
portable way.


> I use a combination of version in the main CMakeLists.txt and the svn
> rev. Variables from these get into a generated project header file
> that is also generated in the main CMakeLists.txt

I imagine a data flow like the following file example.
"shared_data.h" ⇒ "project_specifications.cmake" ⇒ "config.h.in"

Does my idea fit to your software generation approaches?

Regards,
Markus


More information about the CMake mailing list