On Monday 06 January 2014, Rolf Eike Beer wrote: > Am Montag, 6. Januar 2014, 22:41:26 schrieb Alexander Neundorf: > > Hi, > > > > on cmake stage I have a simple branch AddVersionToProjectCommand. > > This extends the project command to also accept a version number: > > > > project(Foo VERSION 1.2.3 CXX) > > Cool, I like this. Shouldn't there be spaces on both sides of operators > (e.g. '>= 2')?
? This basically only sets up version variables for the current project, i.e. it replaces project(Foo CXX) set(Foo_VERSION_MAJOR 1) set(Foo_VERSION_MINOR 2) set(Foo_VERSION_PATCH 3) set(Foo_VERSION ${Foo_VERSION_MAJOR}.${Foo_VERSION_MINOR}.${Foo_VERSION_PATCH}) with one function call, which results in a set of variables with standard names (not related to find_package()). Alex -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers