On 2014-01-29 09:58, Brad King wrote:
I reverted the 'AddVersionToProjectCommand' topic from 'next'
and replaced it with a 'project-version-variables' topic that
adds a policy:

  Help: Format project command and variable documentation
  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=00007dcc

  project: Add optional LANGUAGES keyword
  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=16d040c9

  project: Manage VERSION variables
  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7e142c5a

  write_basic_package_version_file: use PROJECT_VERSION
  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=41d2f2c4

The key is that project() only accepts VERSION when the
policy is set to NEW.  After release this will be automatic
because one would need cmake_minimum_required() to specify a
high enough version to understand the new project() signature
and that would set the policy to NEW.  Once the policy is
set to NEW then we can freely clear variables when project()
is not given a VERSION.

Can one use project(VERSION) and later set the policy to OLD to get the old, don't-unset-the-variables behavior from that point onwards?

--
Matthew

--

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

Reply via email to