1. 28 Sep, 2016 1 commit
    • Brad King's avatar
      project: Fix support for explicit RC language · 9c5238df
      Brad King authored
      The check added in commit v3.6.0-rc1~293^2 (Diagnose recursive
      project/enable_language without crashing, 2016-03-07) broke support for
      enabling `RC` explicitly along with other languages like `C`.  The
      reason is that we enable all listed languages at once so the internal
      `enable_language(RC)` that we do while enabling `C` or `CXX` on some
      platforms triggers the recursion check if `RC` is explicitly listed.
      
      Ideally we should refactor things to only enable one language at a time,
      but for now it is simplest to just exclude `RC` from the explicit list
      until other languages are enabled, and then enable it.
      
      Closes: #16330
      9c5238df
  2. 29 Jan, 2014 2 commits
    • Brad King's avatar
      project: Manage VERSION variables · 7e142c5a
      Brad King authored
      
      
      Teach the project() command to set variables
      
        {PROJECT,<PROJECT-NAME>}_VERSION{,_MAJOR,_MINOR,_PATCH,_TWEAK}
      
      holding the project version number and its components.  Add project()
      command option "VERSION" to specify the version explicitly, and default
      to the empty string when it is not given.
      
      Since this clears variables when no VERSION is given, this may change
      behavior for existing projects that set the version variables themselves
      prior to calling project().  Add policy CMP0048 for compatibility.
      Suggested-by: Alexander Neundorf's avatarAlex Neundorf <neundorf@kde.org>
      7e142c5a
    • Brad King's avatar
      project: Add optional LANGUAGES keyword · 16d040c9
      Brad King authored
      Teach the project() command to recognize an optional "LANGUAGES"
      keyword after the project name and prior to the list of languages.
      Do not allow multiple copies of the keyword.  If the keyword is
      specified and no languages are listed, imply NONE.
      16d040c9