1. 09 Jun, 2014 1 commit
  2. 05 Jun, 2014 1 commit
  3. 11 Mar, 2014 1 commit
    • Stephen Kelly's avatar
      Remove some c_str() calls. · 21c573f6
      Stephen Kelly authored
      Use the clang RemoveCStrCalls tool to automatically migrate the
      code. This was only run on linux, so does not have any positive or
      negative effect on other platforms.
  4. 17 Oct, 2013 2 commits
    • Brad King's avatar
      Add Lua-style long brackets and long comments to CMake language · daa0f6f9
      Brad King authored
      Teach the CMake language parser to recognize Lua-style "long bracket"
      arguments.  These start with two '[' separated by zero or more '='
      characters e.g. "[[" or "[=[" or "[==[".  They end with two ']'
      separated by the same number of '=' as the opening bracket.  There is no
      nesting of brackets of the same level (number of '=').  No escapes,
      variable expansion, or other processing is performed on the content
      between such brackets so they always represent exactly one argument.
      Also teach CMake to parse and ignore "long comment" syntax.  A long
      comment starts with "#" immediately followed by an opening long bracket.
      It ends at the matching close long bracket.
      Teach the RunCMake.Syntax test to cover long bracket and long comment
    • Brad King's avatar
      cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) · dbd93336
      Brad King authored
      Teach the lexer to read a UTF-8, UTF-16 BE/LE, or UTF-32 BE/LE
      Byte-Order-Mark from the start of a file if any is present.  Report an
      error on files using UTF-16 or UTF-32 and accept a UTF-8 or missing BOM.
  5. 15 Aug, 2013 1 commit
    • Brad King's avatar
      Do not warn about left paren not separated by a space · 9040ec91
      Brad King authored
      Since commit 58e52416 (Warn about arguments not separated by whitespace,
      2013-02-16) we warn about arguments not separated by spaces.  Loosen the
      warning to not complain about left parens not separated by spaces from
      the preceding token.  This is common in code like "if(NOT(X))".
      Teach the RunCMake.Syntax test to cover cases of left parens not
      separated by spaces and check that no warning appears.
  6. 08 Aug, 2013 4 commits
    • Brad King's avatar
      Warn about unquoted arguments that look like long brackets · bf732646
      Brad King authored
      In the future CMake will introduce Lua-style long bracket syntax.
      Warn about unquoted arguments that in the future will be treated
      as opening long brackets.
      Teach the RunCMake.Syntax test to cover such cases and ensure that the
      warning appears.
    • Brad King's avatar
      Warn about arguments not separated by whitespace · 58e52416
      Brad King authored
      Teach the lexer to return tokens for whitespace.  Teach the parser to
      tolerate the space tokens where whitespace is allowed.  Also teach the
      parser to diagnose and warn about cases of quoted arguments followed
      immediately by another argument.  This was accidentally allowed
      previously, so we only warn.
      Update the RunCMake.Syntax test case StringNoSpace expected stderr to
      include the warnings.
    • Brad King's avatar
      cmListFileCache: Convert CMake language parser to class · e75b69f5
      Brad King authored
      Refactor the parser implementation into a class to make
      it easier to extend.
    • Brad King's avatar
      cmListFileArgument: Generalize 'Quoted' bool to 'Delimeter' enum · 0546484e
      Brad King authored
      Replace the boolean value that indicates whether an argument is unquoted
      or quoted with a generalized enumeration of possible argument types.
      For now "Quoted" and "Unquoted" remain the only types.
  7. 13 Aug, 2012 1 commit
    • Kitware Robot's avatar
      Remove trailing whitespace from most CMake and C/C++ code · 7bbaa428
      Kitware Robot authored
      Our Git commit hooks disallow modification or addition of lines with
      trailing whitespace.  Wipe out all remnants of trailing whitespace
      everywhere except third-party code.
      Run the following shell code:
      git ls-files -z -- \
       bootstrap doxygen.config '*.readme' \
       '*.c' '*.cmake' '*.cpp' '*.cxx' \
       '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
       '*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
      egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
      egrep -z -v '^(Modules/CPack\..*\.in)' |
      xargs -0 sed -i 's/ \+$//'
  8. 01 Oct, 2009 1 commit
  9. 28 Sep, 2009 1 commit
    • Brad King's avatar
      Convert CMake to OSI-approved BSD License · 96afb120
      Brad King authored
      This converts the CMake license to a pure 3-clause OSI-approved BSD
      License.  We drop the previous license clause requiring modified
      versions to be plainly marked.  We also update the CMake copyright to
      cover the full development time range.
  10. 26 Jun, 2008 1 commit
  11. 27 Apr, 2008 1 commit
  12. 31 Mar, 2008 1 commit
    • Brad King's avatar
      ENH: Allow policy CMP0000 to be set explicitly · e3666a1d
      Brad King authored
        - Message for missing cmake_minimum_required is not issued
          until the end of processing the top CMakeLists.txt file
        - During processing a cmake_policy command may set behavior
        - OLD behavior is to silently ignore the problem
        - NEW behavior is to issue an error instead of a warning
  13. 20 Mar, 2008 2 commits
  14. 19 Mar, 2008 1 commit
    • Brad King's avatar
      ENH: Improve warning about specifying a cmake version · 01033b5d
      Brad King authored
        - Update policy CMP0000 to require use of the command
          cmake_minimum_required and not cmake_policy
          so there is only one way to avoid it.
        - Explicitly specify the line users should add.
        - Reference policy CMP0000 only at the end.
        - Fix policy CMP0000 documentation to not suggest
          use of the cmake_policy command.
  15. 13 Mar, 2008 2 commits
    • Brad King's avatar
      ENH: Improve new error/warning message generation · f7f03347
      Brad King authored
        - Add cmListFileBacktrace to record stack traces
        - Move main IssueMessage method to the cmake class instance
          (make the backtrace an explicit argument)
        - Change cmMakefile::IssueMessage to construct a backtrace
          and call the cmake instance version
        - Record a backtrace at the point a target is created
          (useful later for messages issued by generators)
    • Ken Martin's avatar
      ENH: change CMP_ to CMP · 73df9a5c
      Ken Martin authored
  16. 11 Mar, 2008 1 commit
  17. 07 Mar, 2008 4 commits
    • Brad King's avatar
      ENH: Improve handling of old-style compatibility. · 5233b75a
      Brad King authored
        - Remove CMP_0001 (no slash in target name) and restore
          old CMAKE_BACKWARDS_COMPATIBILITY check for it
        - Replace all checks of CMAKE_BACKWARDS_COMPATIBILITY
          with cmLocalGenerator::NeedBackwardsCompatibility calls
        - Create new CMP_0001 to determine whether or not
          (old = use, new = ignore)
        - Show CMAKE_BACKWARDS_COMPATIBILITY in cache only when
          CMP_0001 is set to OLD or WARN
        - Update documentation of cmake_policy and cmake_minimum_required
          to indicate their relationship and the 2.4 version boundary
        - When no cmake policy version is set in top level makefile
          implicitly call cmake_policy(VERSION 2.4) which restores
          CMAKE_BACKWARDS_COMPATIBILITY and other 2.4 compatibility
        - Fix tests MakeClean and Preprocess to call
          cmake_policy(VERSION 2.6) because they depend on new policies
    • Ken Martin's avatar
      ENH: clean up some policy stuff and interactions with... · 55eede4b
      Ken Martin authored
      ENH: clean up some policy stuff and interactions with CMAKE_BACKWARDS_COMPATIBILITY and CMAKE_MINIMUM_REQUIRED
    • Ken Martin's avatar
      STYLE: fix line length issue · 3b7eaad8
      Ken Martin authored
    • Brad King's avatar
      ENH: New format for warning and error messages · 680104a4
      Brad King authored
        - Add cmMakefile methods IssueError and IssueWarning
        - Maintain an explicit call stack in cmMakefile
        - Include context/call-stack info in messages
        - Nested errors now unwind the call stack
        - Use new mechanism for policy warnings and errors
        - Improve policy error message
        - Include cmExecutionStatus pointer in call stack
          so that errors deeper in the C++ stack under
          a command invocation will become errors for the
  18. 06 Mar, 2008 4 commits
  19. 19 Nov, 2007 1 commit
  20. 01 Aug, 2006 1 commit
  21. 12 May, 2006 1 commit
  22. 15 Mar, 2006 1 commit
  23. 08 Mar, 2006 1 commit
  24. 07 Feb, 2006 1 commit
  25. 06 Jul, 2005 1 commit
  26. 17 Jun, 2005 1 commit
  27. 31 Aug, 2004 2 commits