1. 02 Oct, 2017 1 commit
    • Brad King's avatar
      CPack: Fix .dmg HFS+ creation on macOS APFS hosts · 39b50975
      Brad King authored
      When running `hdiutil create`, specify the HFS+ filesystem explicitly.
      Otherwise `hdiutil` may choose a filesystem based on the host.  We do
      not want to create APFS images for `.dmg` packages because they may not
      mount on macOS versions prior to 10.12.
      39b50975
  2. 29 Sep, 2017 1 commit
  3. 28 Sep, 2017 5 commits
  4. 19 Sep, 2017 1 commit
  5. 29 Aug, 2017 1 commit
  6. 20 Jul, 2017 1 commit
  7. 11 Apr, 2017 1 commit
    • Daniel Pfeifer's avatar
      Use quotes for non-system includes · 1d829c86
      Daniel Pfeifer authored
      Automate with:
      
      git grep -l '#include <cm_' -- Source \
        | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g'
      
      git grep -l '#include <cmsys/' -- Source \
        | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g'
      
      git grep -l '#include <cm[A-Z]' -- Source \
        | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
      1d829c86
  8. 23 Feb, 2017 1 commit
    • Clinton Stimpson's avatar
      cmCPackDragNDropGenerator: Improving handling of temporary dmg images · 356068cd
      Clinton Stimpson authored and Brad King's avatar Brad King committed
      Adjust the image format to create the initial `dmg`, and convert only
      when necessary.  This eliminates spurious
      
          hdiutil create -format UDRW
      
      failures I'm seeing which may be related to an anti-virus scanner.
      Running
      
          hdiutil create -format UDRW -verbose
      
      indicates a "resource is busy" issue when unmounting an image.
      356068cd
  9. 22 Nov, 2016 1 commit
  10. 27 Sep, 2016 1 commit
    • Brad King's avatar
      Simplify CMake per-source license notices · 86578ecc
      Brad King authored
      Per-source copyright/license notice headers that spell out copyright holder
      names and years are hard to maintain and often out-of-date or plain wrong.
      Precise contributor information is already maintained automatically by the
      version control tool.  Ultimately it is the receiver of a file who is
      responsible for determining its licensing status, and per-source notices are
      merely a convenience.  Therefore it is simpler and more accurate for
      each source to have a generic notice of the license name and references to
      more detailed information on copyright holders and full license terms.
      
      Our `Copyright.txt` file now contains a list of Contributors whose names
      appeared source-level copyright notices.  It also references version control
      history for more precise information.  Therefore we no longer need to spell
      out the list of Contributors in each source file notice.
      
      Replace CMake per-source copyright/license notice headers with a short
      description of the license and lin...
      86578ecc
  11. 04 Sep, 2016 1 commit
  12. 14 Jun, 2016 1 commit
  13. 25 May, 2016 1 commit
  14. 17 May, 2016 1 commit
  15. 16 May, 2016 1 commit
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · d9fd2f54
      Kitware Robot authored and Brad King's avatar Brad King committed
      Run the `Utilities/Scripts/clang-format.bash` script to update
      all our C++ code to a new style defined by `.clang-format`.
      Use `clang-format` version 3.8.
      
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
      d9fd2f54
  16. 09 May, 2016 1 commit
    • Brad King's avatar
      Remove `//------...` horizontal separator comments · 0ac18d40
      Brad King authored
      Modern editors provide plenty of ways to visually separate functions.
      Drop the explicit comments that previously served this purpose.
      Use the following command to automate the change:
      
          $ git ls-files -z -- \
              "*.c" "*.cc" "*.cpp" "*.cxx" "*.h" "*.hh" "*.hpp" "*.hxx" |
            egrep -z -v "^Source/cmCommandArgumentLexer\." |
            egrep -z -v "^Source/cmCommandArgumentParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmDependsJavaLexer\." |
            egrep -z -v "^Source/cmDependsJavaParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmExprLexer\." |
            egrep -z -v "^Source/cmExprParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmFortranLexer\." |
            egrep -z -v "^Source/cmFortranParser(\.y|\.cxx|Tokens\.h)" |
            egrep -z -v "^Source/cmListFileLexer\." |
            egrep -z -v "^Source/cm_sha2" |
            egrep -z -v "^Source/(kwsys|CursesDialog/form)/" |
            egrep -z -v "^Utilities/(KW|cm).*/" |
            xargs -0 sed -i '/^\(\/\/---*\|\/\*---*\*\/\)$/ {d;}'
      
      This avoids modifying third-party sources and generated sources.
      0ac18d40
  17. 29 Apr, 2016 2 commits
    • Brad King's avatar
      Format include directive blocks and ordering with clang-format · e1c77472
      Brad King authored
      
      
      Sort include directives within each block (separated by a blank line) in
      lexicographic order (except to prioritize `sys/types.h` first).  First
      run `clang-format` with the config file:
      
          ---
          SortIncludes: false
          ...
      
      Commit the result temporarily.  Then run `clang-format` again with:
      
          ---
          SortIncludes: true
          IncludeCategories:
            - Regex:    'sys/types.h'
              Priority: -1
          ...
      
      Commit the result temporarily.  Start a new branch and cherry-pick the
      second commit.  Manually resolve conflicts to preserve indentation of
      re-ordered includes.  This cleans up the include ordering without
      changing any other style.
      
      Use the following command to run `clang-format`:
      
          $ git ls-files -z -- \
              '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' |
            egrep -z -v '(Lexer|Parser|ParserHelper)\.' |
            egrep -z -v '^Source/cm_sha2' |
            egrep -z -v '^Source/(kwsys|CursesDialog/form)/' |
            egrep -z -v '^Utilities/(KW|cm).*/' |
            egrep -z -v '^Tests/Module/GenerateExportHeader' |
            egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' |
            xargs -0 clang-format -i
      
      This selects source files that do not come from a third-party.
      Inspired-by: Daniel Pfeifer's avatarDaniel Pfeifer <daniel@pfeifer-mail.de>
      e1c77472
    • Brad King's avatar
      Source: Stabilize include order · 180538c7
      Brad King authored
      Each source file has a logical first include file.  Include it in an
      isolated block so that tools that sort includes do not move them.
      180538c7
  18. 18 Mar, 2016 1 commit
  19. 17 Mar, 2016 1 commit
    • Sean McBride's avatar
      CPack: Avoid requiring Carbon framework on OS X (#16021) · c718070c
      Sean McBride authored and Brad King's avatar Brad King committed
      In commit v3.5.0-rc1~232^2 (CPackDMG: Add support for multilingual SLAs,
      2015-10-19) we added use of the Carbon framework in order to get access
      to its APIs to convert Script Manager RegionCode values.  This is not
      necessary.  Instead we can use CoreServices.
      
      While at it, replace individual CoreFoundation includes with including
      the entire framework, which is the correct way.
      c718070c
  20. 07 Jan, 2016 1 commit
  21. 02 Dec, 2015 1 commit
  22. 23 Nov, 2015 1 commit
  23. 13 Nov, 2015 3 commits
    • Robert Maynard's avatar
      CPack/DragNDrop: Optionally run an AppleScript when making a package · 167a4655
      Robert Maynard authored and Brad King's avatar Brad King committed
      While the DragNDropGenerator supports custom DS_Store and backgrounds,
      it is still very hard to automatically setup nice looking packages. The
      primary issue is that the DS_Store embeds the name of the volume in the
      path to backgrounds, which means that if a package embeds the version in
      its volume name a new DS_Store must generated for each release.
      
      Instead one now can use applescript to setup the DS_Store.
      
      This change also ensures that temporary RW image has enough space for
      these changes, creating 1 MB dummy padding file, that is later removed
      from the image.
      
      Co-Author: Adam Strzelecki <adam.strzelecki@java.pl>
      167a4655
    • Robert Maynard's avatar
      CPack/DragNDrop: Place the background image file in a hidden folder · 9c1dfbfd
      Robert Maynard authored and Brad King's avatar Brad King committed
      By using a hidden folder we avoid the need to mark the file as hidden
      from finder, and it makes it easier for future work to refer to the
      background image file.
      9c1dfbfd
    • Robert Maynard's avatar
      CPack/DragNDrop: Use source file extension for background image · 47302038
      Robert Maynard authored and Brad King's avatar Brad King committed
      Instead of blindly copying the `CPACK_DMG_BACKGROUND_IMAGE` file to
      `background.png`, we instead use the same file extension as the source
      image.  This is needed for proper support of multi resolution `tif`
      backgrounds.
      47302038
  24. 06 Nov, 2015 1 commit
    • Simon Levermann's avatar
      CPackDMG: Add support for multilingual SLAs · f88533cc
      Simon Levermann authored and Brad King's avatar Brad King committed
      Multiple languages for SLAs and the SLA UI can be added via the CPack
      variables CPACK_DMG_SLA_DIR and CPACK_DMG_SLA_LANGUAGES.  For each
      language defined in the languages variable, CPack will search for
      <language>.menu.txt and <language>.license.txt in CPACK_DMG_SLA_DIR.
      If the sla directory variable is not defined, the old behaviour using
      CPACK_RESOURCE_FILE_LICENSE is retained.
      f88533cc
  25. 20 Apr, 2015 1 commit
  26. 11 Jan, 2015 1 commit
  27. 07 Jan, 2014 1 commit
  28. 01 Nov, 2013 1 commit
  29. 31 Oct, 2013 1 commit
  30. 23 Oct, 2012 1 commit
  31. 13 Aug, 2012 1 commit
    • Kitware Robot's avatar
      Remove trailing whitespace from most CMake and C/C++ code · 7bbaa428
      Kitware Robot authored and Brad King's avatar Brad King committed
      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/ \+$//'
      7bbaa428
  32. 08 Mar, 2012 1 commit
    • David Cole's avatar
      Xcode: Detect new default locations of Xcode 4.3 bits and pieces (#12621) · 4693cf84
      David Cole authored
      Xcode 4.3 installs into "/Applications" by default, from the Mac App Store.
      
      Also, the paths to the available SDKs changed: they are now within the
      Xcode.app bundle.
      
      PackageMaker is installed as a separate program, and may be installed
      anywhere. It is not installed with Xcode 4.3 by default anymore.
      Download the "Auxiliary Tools for Xcode" to get PackageMaker.
      Put PackageMaker inside the Xcode.app bundle, in its nested Applications
      folder, or put it alongside Xcode in "/Applications" and CMake will find
      it.
      
      Update references to "find" paths: add new possible locations for finding
      Xcode.app and PackageMaker.app. Prefer the most recent version's locations
      first, but keep the old locations as fallback search paths, too.
      
      Thanks to all the contributors who provided and tested out various patches
      for fixing this issue. Especially, but by no means limited to:
      Francisco Requena Espí, Jamie Kirkpatrick and drfrogsplat.
      4693cf84
  33. 29 Feb, 2012 1 commit