1. 09 Aug, 2019 1 commit
    • Saleem Abdulrasool's avatar
      Generator: support per-language link library flag · 689be623
      Saleem Abdulrasool authored
      This enables the use of MSVC and Swift on Windows in a single project.
      MSVC uses no flag to indicate linked libraries while Swift uses `-l`.
      Add support for a language specific link library flag which takes
      precedence over the global `CMAKE_LINK_LIBRARY_FLAG` which preserves
      compatibility with earlier releases.
  2. 06 Aug, 2019 1 commit
  3. 25 Jul, 2019 1 commit
  4. 21 Jul, 2019 1 commit
    • Alex Turbov's avatar
      CPack: Introduce CPACK_INSTALL_SCRIPTS variable · 5f966016
      Alex Turbov authored
      The singular name `CPACK_INSTALL_SCRIPT` has existed but was not linked
      from the CPack documentation.  Also, it supported multiple values and
      should have had a plural name.  Add a plural-named alternative now.
      If both `CPACK_INSTALL_SCRIPTS` and `CPACK_INSTALL_SCRIPT` are set then
      ignore the latter with a warning.
      Signed-off-by: Alex Turbov's avatarAlex Turbov <i.zaufi@gmail.com>
  5. 20 Jul, 2019 1 commit
  6. 17 Jul, 2019 1 commit
  7. 09 Jul, 2019 3 commits
  8. 02 Jul, 2019 1 commit
  9. 21 Jun, 2019 1 commit
  10. 21 May, 2019 2 commits
  11. 16 May, 2019 1 commit
  12. 14 May, 2019 1 commit
  13. 07 May, 2019 1 commit
  14. 19 Apr, 2019 2 commits
    • Bill Hoffman's avatar
      execute_process: Add option to echo command lines · 044dcf9f
      Bill Hoffman authored
      Add COMMAND_ECHO option to the execute_process command. This will allow
      execute_process to show the command it will run. Also add a cmake variable
      CMAKE_EXECUTE_PROCESS_COMMAND_ECHO. Both the option and the variable can
      be set to one of the following: STDERR|STDOUT|NONE. The command will be
      printed to stderr or stdout or not at all.
      Fixes: #18933
    • Brad King's avatar
      VS: Provide the default platform name to project code · db02be85
      Brad King authored
      The value of `CMAKE_VS_PLATFORM_NAME` is computed by Visual Studio
      generators based on `CMAKE_GENERATOR_PLATFORM` or some default.
      Prior to the VS 2019 generator, the default was always `Win32`.
      However, for the `Visual Studio 16 2019` generator, the default is
      based on the host platform.
      Store the default in a new `CMAKE_VS_PLATFORM_NAME_DEFAULT` variable for
      use by project code.  This is particularly useful in toolchain files
      because they are allowed to set `CMAKE_GENERATOR_PLATFORM` and so
      `CMAKE_VS_PLATFORM_NAME` is not yet known.  Of course the toolchain file
      author knows whether it will set `CMAKE_GENERATOR_PLATFORM`, and if not
      then `CMAKE_VS_PLATFORM_NAME_DEFAULT` provides the platform name that
      will be used.
      Fixes: #19177
  15. 17 Apr, 2019 1 commit
    • Brad King's avatar
      MSVC: Add abstraction for runtime library selection · fb3370b6
      Brad King authored
      Replace our hard-coded defaults for `/MD` and `/MDd` with a first-class
      abstraction to select the runtime library from an enumeration of logical
      names.  We've long hesitated to do this because the idea of "runtime
      library selection" touches on related concepts on several platforms.
      Avoid that scope creep by simply defining an abstraction that applies
      only when targeting the MSVC ABI on Windows.
      Removing the old default flags requires a policy because existing
      projects may rely on string processing to edit them and choose a runtime
      library under the old behavior.  Add policy CMP0091 to provide
      Fixes: #19108
  16. 08 Apr, 2019 1 commit
  17. 01 Apr, 2019 1 commit
  18. 27 Mar, 2019 1 commit
  19. 15 Mar, 2019 1 commit
    • Robert Maynard's avatar
      export: Disable PACKAGE mode user package registry by default · 9bede5c4
      Robert Maynard authored
      The user package registry populated by the `export()` command causes
      side effects outside the build and source directories.  Such effects
      should be opt-in rather than op-out.  Introduce a policy to change
      default behavior of `export(PACKAGE)` to do nothing.
  20. 06 Mar, 2019 1 commit
  21. 05 Mar, 2019 1 commit
    • Ruslan Baratov's avatar
      iOS: Add IOS variable · e427c7c1
      Ruslan Baratov authored
      Since commit 11da882a (Apple: Introduce separate system name for iOS,
      tvOS, and watchOS, 2018-01-15, v3.14.0-rc1~14^2~1) we support setting
      `CMAKE_SYSTEM_NAME` to `iOS`.  Existing iOS toolchain files already
      set `IOS` as a short-hand variable, so do the same here.
  22. 08 Feb, 2019 1 commit
  23. 30 Jan, 2019 4 commits
  24. 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
  25. 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
    • David Aguilar's avatar
      find_package: optionally resolve symlinks when discovering packages · a5e948a3
      David Aguilar authored
      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
  26. 02 Jan, 2019 1 commit
  27. 11 Nov, 2018 1 commit
  28. 08 Nov, 2018 2 commits
  29. 03 Nov, 2018 1 commit
  30. 26 Oct, 2018 1 commit
    • Peter Wu's avatar
      RPATH: Add option for using $ORIGIN in build tree · 6114d85a
      Peter Wu authored
      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