1. 30 Jan, 2019 1 commit
  2. 23 Jan, 2019 1 commit
    • Kyle Edwards's avatar
      cmMakefile: Impose maximum recursion limit · a6982cff
      Kyle Edwards authored
      In order to keep infinitely-recursive scripts from causing a stack
      overflow in the CMake executable, CMake now imposes a maximum
      recursion limit before issuing an error message. The limit can be
      adjusted at runtime with CMAKE_MAXIMUM_RECURSION_DEPTH.
      Fixes: #18694
  3. 16 Jan, 2019 3 commits
    • Fred Baksik's avatar
      GHS: Use the correct compiler flags for CMAKE_BUILD_TYPE · 702121c5
      Fred Baksik authored
      -- Do not use CMAKE_C_FLAGS_RELEASE flags when CMAKE_BUILD_TYPE is empty
         if CMAKE_BUILD_TYPE was not set the generator would use Release settings
         this does not match the documented behavior of CMAKE_BUILD_TYPE
      -- CMAKE_C_FLAGS_<CONFIG> not used when -kernel is present
         Fixes issue where CMAKE_C_FLAGS_<CONFIG> is ignored when -kernel option is present as a compiler option
         When the -kernel option is added to an executable it uses a different set of language flags
         This does not occur -kernel=<type> is used or if it is added as part of a link flag
         The variables CMAKE_<LANG>_GHS_KERNEL_FLAGS_<CONFIG> are removed
         NOTE: By default this only added the flag -ldebug which links in the debugger library.
      -- Separate compiler options by newlines
    • wahikihiki's avatar
      CTest: Add documentation and release notes for SubmitURL · 2915a756
      wahikihiki authored and Brad King's avatar Brad King committed
    • David Aguilar's avatar
      find_package: optionally resolve symlinks when discovering packages · a5e948a3
      David Aguilar authored and Brad King's avatar Brad King committed
      Teach find_package() to resolve symlinks when constructing
      relocatable prefix paths from discovered cmake config files.
      The `CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS` variable enables
      this behavior when set to `TRUE`.
      Fixes: #18704
  4. 02 Jan, 2019 1 commit
  5. 11 Nov, 2018 1 commit
  6. 08 Nov, 2018 2 commits
  7. 03 Nov, 2018 1 commit
  8. 26 Oct, 2018 1 commit
    • Peter Wu's avatar
      RPATH: Add option for using $ORIGIN in build tree · 6114d85a
      Peter Wu authored and Brad King's avatar Brad King committed
      This makes binaries independent of the build directory by not embedding
      the build directory via RPATH.  The tests are partially based on the
      existing RuntimePath test, but with the check moved into a POST_BUILD
      command such that it can be skipped when the platform lacks support.
      Fixes: #18413
  9. 25 Sep, 2018 2 commits
  10. 17 Sep, 2018 1 commit
  11. 10 Sep, 2018 1 commit
  12. 30 Aug, 2018 1 commit
  13. 07 Aug, 2018 1 commit
  14. 01 Aug, 2018 1 commit
    • Gregor Jasny's avatar
      Xcode: Add variables and properties to configure schemes · 6b7f1e1d
      Gregor Jasny authored and Brad King's avatar Brad King committed
      Add `XCODE_SCHEME_*` target properties and associated variables
      `CMAKE_XCODE_SCHEME_*` to initialize them on target creation.
      Map each target property value to an associated Xcode scheme entry.
      Co-Author: Martin Sander <mail@martin-sander.de>
      Fixes: #17919
  15. 20 Jul, 2018 1 commit
  16. 21 Jun, 2018 1 commit
  17. 06 Jun, 2018 1 commit
  18. 29 May, 2018 1 commit
  19. 15 May, 2018 1 commit
  20. 02 May, 2018 1 commit
    • Alex Turbov's avatar
      CPack: Use project version as default for `CPACK_PACKAGE_VERSION` · af1c4887
      Alex Turbov authored and Craig Scott's avatar Craig Scott committed
      * Introduce `CMAKE_PROJECT_VERSION` and the corresponsing components:
      * `CPack` module use `CMAKE_PROJECT_VERSION_MAJOR`,
        to initialize corresponsing CPack variables.
  21. 19 Apr, 2018 1 commit
  22. 04 Apr, 2018 1 commit
  23. 29 Mar, 2018 1 commit
    • Marc's avatar
      Add CMAKE_FOLDER variable to initialize FOLDER target property · df535ad8
      Marc authored and Brad King's avatar Brad King committed
      This can be used for example to organize all following targets into one
      Visual Studio folder:
        set(CMAKE_FOLDER Libraries)
        set(CMAKE_FOLDER Executables)
      Another possibility is using the current directory name for all
      following targets in subdirectories:
        get_filename_component(dirname "${CMAKE_CURRENT_SOURCE_DIR}" NAME)
        string(APPEND CMAKE_FOLDER "/${dirname}")
  24. 16 Mar, 2018 2 commits
    • Alex Turbov's avatar
      project: Add HOMEPAGE_URL named parameter · 73f9b297
      Alex Turbov authored and Craig Scott's avatar Craig Scott committed
      This sets variables like PROJECT_HOMEPAGE_URL, which can be
      used as default values for various things (packaging modules,
      doxygen defaults, etc.). Some packaging modules have been
      updated to do this as part of this commit.
      Co-Author: Craig Scott <craig.scott@crascit.com>
    • Craig Scott's avatar
      project: Add <PROJECT-NAME>_DESCRIPTION · fd28c382
      Craig Scott authored
      For consistency with the VERSION keyword, also define the
  25. 23 Feb, 2018 1 commit
  26. 26 Jan, 2018 1 commit
  27. 17 Jan, 2018 1 commit
  28. 08 Jan, 2018 1 commit
    • Beren Minor's avatar
      Unhardcode the CMAKE_CONFIGURATION_TYPES values · 48f7e2d3
      Beren Minor authored
      This removes duplicated code for per-config variable initialization by
      providing a `cmake_initialize_per_config_variable(<PREFIX> <DOCSTRING>)`
      This function initializes a `<PREFIX>` cache variable from `<PREFIX>_INIT`
      and unless the `CMAKE_NOT_USING_CONFIG_FLAGS` variable is defined, does
      the same with `<PREFIX>_<CONFIG>` from `<PREFIX>_<CONFIG>_INIT` for every
      `<CONFIG>` in `CMAKE_CONFIGURATION_TYPES` for multi-config generators or
      `CMAKE_BUILD_TYPE` for single-config generators.
  29. 29 Nov, 2017 1 commit
    • Matt McCormick's avatar
      Ninja: add CMAKE_JOB_POOLS variable as default for JOBS_POOLS · 07185055
      Matt McCormick authored
      This enables configuration of build parallelism with the Ninja generator by
      passing arguments on the command line to CMake. For example,
        cmake \
          '-DCMAKE_JOB_POOLS:STRING=compile=5;link=2' \
  30. 27 Nov, 2017 1 commit
    • Melven Roehrig-Zoellner's avatar
      CodeBlocks: add option for the CB compiler ID · e04f1d1b
      Melven Roehrig-Zoellner authored and Brad King's avatar Brad King committed
      CodeBlocks uses his own compiler ID string which may differ from
      CMAKE_<LANG>_COMPILER_ID. In particular CodeBlocks supports a large
      number of different compiler configurations (with different IDs)
      This commit adds a cache variable "CMAKE_CODEBLOCKS_COMPILER_ID",
      so the user might adjust it when needed.
  31. 17 Nov, 2017 1 commit
  32. 08 Nov, 2017 2 commits
    • Domen Vrankar's avatar
      CPack: enable setting default dir creation permissions · 7e896029
      Domen Vrankar authored
      variable which adds support for functionality introduced
      Fixes #17333
      # Conflicts:
      #	Help/release/dev/cmake-default-dir-install-permissions.rst
    • Domen Vrankar's avatar
      CMake: enable setting default dir creation permissions · deeba85f
      Domen Vrankar authored
      variable which enables the user to specify the default
      permissions for directory creation. This setting is then
      used to auto set the permissions on directories which
      are implicitly created by install() and file(INSTALL)
      commands such as CMAKE_INSTALL_PREFIX directories.
  33. 31 Oct, 2017 1 commit
  34. 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