1. 11 Feb, 2019 1 commit
  2. 31 Jan, 2019 2 commits
    • Vitaly Stakhovsky's avatar
      0779bc93
    • Brad King's avatar
      Remove unused 'class cmake' members · ea9a3760
      Brad King authored
      * The `InTryCompile` member has been unused since commit 62854e99
        (cmState: Move try_compile state from cmake class., 2015-04-11,
        v3.3.0-rc1~196^2~9).
      
      * The `ConvertMessageType` and `IsMessageTypeVisible` members have been
        unused since commit 421012a3 (cmMessenger: Extract from cmake class,
        2016-01-28, v3.7.0-rc1~222^2~1).
      
      * The `InitializeProperties` member has been unused since commit
        de722d7d (Move property initialization to cmState., 2015-04-06,
        v3.3.0-rc1~196^2~1).
      
      Co-Author: Vitaly Stakhovsky <vvs31415@gitlab.org>
      ea9a3760
  3. 29 Jan, 2019 2 commits
  4. 28 Jan, 2019 1 commit
    • Florian Maushart's avatar
      cmake: Add options for verbose output to --build mode · 439fe2e2
      Florian Maushart authored
      While we already support `VERBOSE` environment variable and
      `CMAKE_VERBOSE_MAKEFILE` cached variable, add `-v` and `--verbose`
      command line options to be able to activate verbose output directly from
      CMake's build tool mode command line.
      
      Also make `msbuild` honor the verbosity setting. `xcodebuild` still
      doesn't honor the verbosity setting as it will need a policy added
      and reworking of cmGlobalGenerator and cmsys to support
      multiple command invocation.
      439fe2e2
  5. 21 Jan, 2019 1 commit
  6. 18 Jan, 2019 5 commits
  7. 17 Jan, 2019 1 commit
  8. 16 Jan, 2019 1 commit
  9. 13 Jan, 2019 1 commit
    • Craig Scott's avatar
      cmake: Ensure source and binary dirs are set · 27eb7c5b
      Craig Scott authored
      If only the source dir is provided, the binary dir is assumed
      to be the working directory. If only the binary dir is provided
      and it doesn't yet have a CMakeCache.txt to provide the
      source dir, then the source dir is assumed to be the working
      directory. This logic was not previously being handled
      correctly when -S and/or -B options were involved.
      Furthermore, when both were missing, no suitable error
      message was provided and an empty string was used for
      the build directory.
      
      Fixes: #18707
      27eb7c5b
  10. 12 Dec, 2018 1 commit
    • Brad King's avatar
      fileapi: Add protocol v1 infrastructure with support for shared query files · eb2ec41a
      Brad King authored
      Add a file-based API that clients may use to get semantic information
      about the buildsystem that CMake generates.  Clients will write query
      files under a designated location in the build tree, and CMake will
      write reply files for clients to read.
      
      Start with support for shared stateless query files.  These allow
      clients to share requests for major object versions and get all those
      recognized by CMake.  Once any client has written a shared request to a
      build tree it will persist.  Other clients will not need to overwrite
      the request (since it is stateless) and should not remove it either.
      
      For now we add only an undocumented object kind to use for testing the
      query and reply infrastructure.  Object kinds providing real semantic
      information will be added later.
      
      Issue: #18398
      eb2ec41a
  11. 21 Sep, 2018 1 commit
  12. 15 Sep, 2018 1 commit
  13. 29 Aug, 2018 1 commit
  14. 01 Jun, 2018 1 commit
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format-6.0 · d7204e64
      Kitware Robot authored
      Run the `clang-format.bash` script to update all our C and C++ code to a
      new style defined by `.clang-format`.  Use `clang-format` version 6.0.
      
      * 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.
      d7204e64
  15. 25 May, 2018 1 commit
    • Florian Maushart's avatar
      cmake: Add options for parallel builds to --build mode · 1ab3881e
      Florian Maushart authored
      While we already support `cmake --build . -- -j`, the options after `--`
      are specific to the native build tool.  Add new options `--parallel
      [<N>]` and `-j [<N>]` to abstract this and map to the proper option
      for the native build tool.
      1ab3881e
  16. 24 May, 2018 1 commit
  17. 29 Mar, 2018 1 commit
  18. 27 Mar, 2018 1 commit
  19. 31 Jan, 2018 1 commit
    • Pavel Solodovnikov's avatar
      Reduce raw string pointers usage. · 653b8946
      Pavel Solodovnikov authored
      * Change some functions to take `std::string` instead of
        `const char*` in the following classes: `cmMakeFile`, `cmake`,
        `cmCoreTryCompile`, `cmSystemTools`,  `cmState`, `cmLocalGenerator`
        and a few others.
      * Greatly reduce using of `const char*` overloads for
        `cmSystemTools::MakeDirectory` and `cmSystemTools::RelativePath`.
      * Remove many redundant `c_str()` conversions throughout the code.
      653b8946
  20. 17 Nov, 2017 1 commit
    • Aaron Orenstein's avatar
      Performance: Improve efficiency of source file lookup in cmMakefile · 4a6348db
      Aaron Orenstein authored
      This reintroduces the change from commit v3.10.0-rc1~69^2 (Performance:
      Improve efficiency of source file lookup in cmMakefile, 2017-08-17) with
      some corrections.  The original was rolled back by commit
      v3.10.0-rc1~52^2~1 (Revert "Performance: ...", 2017-09-25) due to
      incompatibilities found.  The rollback was followed-up by addition of a
      test for the offending case, and this revision passes the test.
      4a6348db
  21. 19 Oct, 2017 1 commit
    • Brad King's avatar
      Add infrastructure for generators to select a build tool instance · 314613d1
      Brad King authored
      Add cache entry `CMAKE_GENERATOR_INSTANCE` to hold the instance location
      persistently across re-runs of CMake in a given build tree.
      
      For now we reject the option by default if explicitly set.  It will be
      implemented on a per-generator basis.  Pass the setting into try_compile
      project generation.  Add a RunCMake.GeneratorInstance test to cover
      basic use cases for the option.  Verify that `CMAKE_GENERATOR_INSTANCE`
      is empty by default, and that it is rejected when the generator does not
      support a user setting.
      
      Issue: #17268
      314613d1
  22. 13 Oct, 2017 1 commit
  23. 27 Sep, 2017 1 commit
    • Brad King's avatar
      try_compile: Simplify generator platform and toolset propagation · 29849376
      Brad King authored
      We don't need to save the `CMAKE_GENERATOR_{PLATFORM,TOOLSET}` values
      from the cache back into the `cmake` instance.  They were used only to
      propagate the settings into `cmake` instances for `try_compile`, but we
      already have their values in the `cmMakefile`'s variables anyway.  In
      fact those variables are the ones we actually give to the generators.
      29849376
  24. 26 Aug, 2017 1 commit
  25. 24 Aug, 2017 1 commit
  26. 08 May, 2017 1 commit
  27. 24 Apr, 2017 1 commit
  28. 21 Apr, 2017 1 commit
  29. 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
  30. 13 Feb, 2017 1 commit
  31. 02 Dec, 2016 1 commit
  32. 08 Nov, 2016 1 commit
  33. 02 Nov, 2016 1 commit
    • Brad King's avatar
      Features: Add meta-features requesting awareness of a particular standard · b0996a3f
      Brad King authored
      A common use case of `target_compile_features` is simply to specify that
      the compiler should be run in a mode that is aware of e.g. C++11.  Some
      projects simply specify a particular C++11-only feature to request this.
      Provide a first-class way to do this by naming features after the
      corresponding language standard.  Record them as always available in the
      corresponding standard level so that requesting them always ensures that
      standard (or higher) is used.
      b0996a3f
  34. 19 Oct, 2016 1 commit