Skip to content
Snippets Groups Projects
  1. Jul 20, 2021
    • Brad King's avatar
      cmMessenger: Revert to non-color messages on Windows · c7a8c9c8
      Brad King authored
      Since commit 0a0a0f8a (cmMessenger: Color messages to terminal by
      type, 2021-05-18, v3.21.0-rc1~146^2) the message output no longer goes
      through our custom streambuf on Windows that converts output encoding.
      This can cause messages to be printed with the wrong encoding in a
      Windows Console.  It also causes messages to have a mix of LF and CRLF
      newlines because `stderr` converts LF to CRLF but our custom streambuf
      does not.
      
      Revert to using just `cerr` for messages on Windows.  Another approach
      will be needed to achieve color output on Windows later.
      
      Fixes: #22444
      c7a8c9c8
    • Brad King's avatar
      CMakeDependentOption: Revert "Allow parentheses in the depends string" · d777ca12
      Brad King authored
      Revert commit 0665d909 (CMakeDependentOption: Allow parentheses in the
      depends string, 2021-06-13, v3.21.0-rc1~32^2).  It broke existing use
      cases with parentheses in regular expressions.  Also add a test for this.
      
      Fixes: #22447
      d777ca12
    • Brad King's avatar
      try_compile: Propagate CMP0126 to the generated test project · 144be54d
      Brad King authored
      Set policy CMP0126 to the value used in the calling project.
      It may affect toolchain file behavior.
      144be54d
  2. Jul 16, 2021
  3. Jul 15, 2021
    • Brad King's avatar
      enable_language: Fix test for working compiler with CMP0126 NEW behavior · 3ddd7f35
      Brad King authored
      Update the logic that converts a `try_compile` result from a cache
      entry to a normal variable to tolerate an existing normal variable
      under CMP0126 NEW behavior.  Otherwise the `try_compile` result
      is ignored because CMake uses the false value of the normal variable,
      and CMake incorrectly reports that the compiler does not work.
      
      This went unnoticed for some languages (e.g. C and CXX) because the
      check for a working compiler is skipped if ABI detection works.
      It does affect other languages (e.g. CSharp).
      
      Fixes: #22423
      3ddd7f35
  4. Jul 13, 2021
    • Brad King's avatar
      Help: Clarify 'cmake --build' signature alternatives · 161f1f42
      Brad King authored
      Documentation added by
      
      * commit 4f4f2028 (Help: Add documentation for buildPresets and
                           testPresets, 2021-01-13, v3.20.0-rc1~51^2~7)
      * commit 676ecf0d (cmake-presets: Add build and test presets,
                           2020-12-14, v3.20.0-rc1~51^2~6)
      
      used square brackets in the `cmake --build` signature to indicate
      non-optional alternatives, which is not a typical convention.
      A common convention is to use parentheses instead, but in this
      case it is probably clearer to list the two signatures separately.
      
      Fixes: #22413
      161f1f42
  5. Jul 12, 2021
  6. Jul 09, 2021
    • Brad King's avatar
      Tests: Fix RunCMake.try_compile C/CXX standards with IntelLLVM MSVC mode · 1c227583
      Brad King authored
      Since commit 5115dd1e (IntelLLVM: Fix C/C++ standard level flags on
      Windows, 2021-07-07, v3.21.0-rc3~7^2^2) we activate C/C++ standard level
      logic for IntelLLVM when targeting the MSVC ABI.  Update the
      `RunCMake.try_compile` test to be aware of this even when CMake is
      itself configured by an older CMake that does not know this.
      1c227583
    • Brad King's avatar
      Tests: Fix RunCMake.try_compile C/CXX standards with IntelLLVM MSVC mode · 6eea123e
      Brad King authored
      Since commit 84036d30 (IntelLLVM: Fix C/C++ standard level flags on
      Windows, 2021-07-07, v3.21.0-rc3~8^2~1) we activate C/C++ standard level
      logic for IntelLLVM when targeting the MSVC ABI.  Update the
      `RunCMake.try_compile` test to be aware of this even when CMake is
      itself configured by an older CMake that does not know this.
      6eea123e
  7. Jul 08, 2021
    • Robert Maynard's avatar
      Check*CompilerFlag: Do not set result as a normal variable too · 018d300c
      Robert Maynard authored and Brad King's avatar Brad King committed
      This was previously fixed by commit d4659091 (Check*CompilerFlag: Do
      not set result as a normal variable too, 2020-09-21, v3.18.3~1^2^2), but
      was regressed by refactoring in commit 90dead02 (CheckCompilerFlag:
      unified way to check compiler flags per language, 2020-09-25,
      v3.19.0-rc1~88^2) due to the changes being developed concurrently.
      Fix it again, and add a test case.
      
      Fixes: #21207
      018d300c
  8. Jul 06, 2021
  9. Jul 02, 2021
    • Brad King's avatar
      Tests: Fix newline matching in several RunCMake.* cases · 3ede66e1
      Brad King authored
      The RunCMake infrastructure's `*-stdout.txt` expected output files
      interpret `\n` as a `\` and `n` rather than a newline.  Use a literal
      newline instead.  Otherwise the cases that were trying to match any
      configuration name via `[^\n]*` would fail on `RelWithDebInfo` because
      it contains the letter `n`.
      3ede66e1
  10. Jun 29, 2021
    • Brad King's avatar
      target_link_libraries: Restore transitive out-of-dir linking · e27a76f1
      Brad King authored
      Refactoring in commit 7f506b95 (cmGeneratorTarget: Refactor link item
      lookup, 2021-05-26, v3.21.0-rc1~103^2~4) accidentally dropped the
      persistent lookup scope tracking across multiple items that was added by
      commit f0e67da0 (target_link_libraries: Fix out-of-dir linking of a
      list of targets, 2020-01-14, v3.17.0-rc1~149^2).  This broke a
      transitive out-of-dir linking case not covered by our test suite.
      Restore the scope tracking and add a test case.
      
      Fixes: #22363
      e27a76f1
    • Alex Sweet's avatar
      CPack/RPM: Fix weak dep support · 9b53eca3
      Alex Sweet authored and Brad King's avatar Brad King committed
      RPM 4.11.3 for el7 contains backported support for the RPM weak dep tags.
      It only supports querying those tags, but rpmbuild can not make use of them.
      Since CPack relies on rpmbuild --querytags to check for support, this
      commit switches to rpm --suggests to check for support of weak
      dependencies.
      
      Fixes: #22350
      9b53eca3
    • Marc Chevrier's avatar
      CMP0126: Add control for warnings · 16208ac1
      Marc Chevrier authored
      Fixes: #22353
      16208ac1
  11. Jun 28, 2021
  12. Jun 25, 2021
  13. Jun 18, 2021
    • Brad King's avatar
      Tests: Fix xcode version detection for Xcode 13 on ARM · 1dd0eae4
      Brad King authored
      Running `xcode -version` on an ARM box prints content to stderr:
      
          objc[...]: Class ... is implemented in both...
          One of the two will be used. Which one is undefined.
      
      Capture and parse only stdout.  Otherwise we might configure test
      behavior for the wrong version of Xcode.
      1dd0eae4
  14. Jun 16, 2021
  15. Jun 14, 2021
  16. Jun 10, 2021
  17. Jun 09, 2021
  18. Jun 08, 2021
  19. Jun 07, 2021
Loading