Skip to content
Snippets Groups Projects
  1. Jul 26, 2021
  2. Jul 23, 2021
    • Jean-Marc Hengen's avatar
      IAR: Moved search logic to BinUtils. · 5b9bfe73
      Jean-Marc Hengen authored
      The search logic for the IAR linker, librarian and related tools is
      moved from `Modules/Compiler/IAR-FindBinUtils.cmake` to
      `Modules/CMakeFindBinUtils.cmake` by introducing an new elseif block
      for the IAR toolchain.
      
      The search logic was refactored to omit repeating itself.
      
      Fixes: #22425
      5b9bfe73
  3. Jul 21, 2021
    • Raul Tambre's avatar
      GNU: Correct C23 flags · d61bc424
      Raul Tambre authored
      Non-final forms aren't supported yet, unlike C++23.
      Seems I might've gotten confused due to that when I added these.
      
      Fixes #22453.
      d61bc424
  4. Jul 20, 2021
  5. Jul 19, 2021
  6. Jul 15, 2021
  7. Jul 14, 2021
    • Lingkai Dong's avatar
      ARMClang: Fix regression in check for working compiler · 509ef50a
      Lingkai Dong authored and Brad King's avatar Brad King committed
      Given the compiler to use, `CMakeFindBinUtils.cmake` automatically
      determines a number of tools including linker (CMAKE_LINKER) and archiver
      (CMAKE_AR) and stores them in a generated file `CMakeCCompiler.cmake` as
      non-CACHE entries. The compiler-specific ARMClang.cmake then tries to
      override CMAKE_LINKER and CMAKE_AR as CACHE entries.
      
      Following the introduction of CMP0126, which is set to NEW in the test
      for a working compiler, setting a CACHE entry does not replace a normal
      entry of the same name anymore, resulting in a failed test due to wrong
      linker and archiver.
      
      To fix this, set CMAKE_LINKER and CMAKE_AR for ARMClang directly in
      `CMakeFindBinUtils.cmake` as is done for other compilers.  Check
      for them in `ARMClang.cmake` to safeguard cases when a project explicitly
      includes `ARMClang.cmake` prior to compiler determination (which some
      projects do to work around other problems in older CMake versions).
      509ef50a
  8. Jul 12, 2021
    • Alex Turbov's avatar
      CPack/DEB: Avoid overriding user-provided `postinst` and `postrm` · 805fa791
      Alex Turbov authored and Brad King's avatar Brad King committed
      When a user provides `CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA` or
      `CPACK_DEBIAN_<comp>_PACKAGE_CONTROL_EXTRA` variables in
      `CMakeLists.txt` and the package contains dynamic libraries, the
      `CPackDeb.cmake` sets `CPACK_ADD_LDCONFIG_CALL` to `1`.  Later it
      analyzes if defaulted `postinst`/`postrm` should be generated trying to
      check if the user provides any in `CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA`
      variable. However, the `foreach` loop uses the invalid variable
      `PACKAGE_CONTROL_EXTRA` instead, so these files gonna be overridden.
      Fix the variable name.
      
      Fixes: #22410
      805fa791
    • Brad King's avatar
      Find{BLAS,LAPACK}: Avoid clobbering results when no vendor is requested · 57dcde19
      Brad King authored
      Logic added by commit 4c74c86f (FindBLAS/LAPACK: Add support for the
      Fujitsu SSL2 library, 2021-01-27, v3.21.0-rc1~402^2~1) accidentally
      expressed a boolean condition without proper grouping.  The pattern was
      then copied by commit 2c9e623e (Find{BLAS,LAPACK}: Add support for the
      NVHPC LAPACK library, 2021-05-05, v3.21.0-rc1~192^2).  The resulting
      logic incorrectly tries Fujitsu and NVHPC vendors even after results are
      found from another vendor, and then erases those.  Fix the grouping.
      
      Fixes: #22403
      57dcde19
  9. Jul 09, 2021
    • Raul Tambre's avatar
      CMakeCCompilerId: Fix C standard detection in Clang and IntelLLVM MSVC mode · 1c14691a
      Raul Tambre authored and Brad King's avatar Brad King committed
      Clang does not define `__STDC__` if in MSVC compatibility mode, but does
      define `__STDC_VERSION__`.  Avoid the fallback for this combination.
      
      This backports commit 7596d8b9 (CMakeCCompilerId: Fix C standard
      detection in Clang MSVC mode, 2021-02-07, v3.21.0-rc1~587^2~14) to the
      3.20 release series.  This is needed since commit 5115dd1e (IntelLLVM:
      Fix C/C++ standard level flags on Windows, 2021-07-07, v3.21.0-rc3~7^2^2)
      now that we activate C/C++ standard level logic for IntelLLVM when
      targeting the MSVC ABI.
      1c14691a
    • Brad King's avatar
      FindJPEG: Revert "Search for 'turbojpeg' and 'turbojpeg-static' too" · 0de1f150
      Brad King authored
      Revert commit 74cc2e33 (FindJPEG: Search for 'turbojpeg' and
      'turbojpeg-static' too, 2021-01-09, v3.20.0-rc1~176^2) pending further
      investigation.  The "turbo" variants are not drop-in replacements on all
      platforms.
      
      Fixes: #22333
      0de1f150
  10. Jul 08, 2021
  11. Jul 07, 2021
  12. Jul 06, 2021
  13. Jul 01, 2021
  14. Jun 29, 2021
  15. Jun 25, 2021
  16. Jun 24, 2021
  17. Jun 22, 2021
  18. Jun 20, 2021
    • Craig Scott's avatar
      ExternalProject: Use ${ref}^0 to avoid MSYS/Cygwin shell substitutions · 360ff17d
      Craig Scott authored
      In 5e941a54 (ExternalProject: Ensure git fetch if updating to hash we
      don't have yet, 2021-05-09), the form ${ref}^{commit} was used to ensure
      the ref was treated as a commit. When running under a MSYS2 or
      Cygwin shell, the {commit} part can be translated by the shell, leaving it as
      ${ref}^commit, which git doesn't understand. Use the equivalent but
      safer form ${ref}^0, since it won't be subject to the shell substitution
      issue.
      
      Fixes: #22299
      360ff17d
  19. Jun 18, 2021
    • Natanael Copa's avatar
      GNUInstallDirs: don't use lib64 on Alpine Linux · 37b24e0b
      Natanael Copa authored and Brad King's avatar Brad King committed
      Fixes: #22318
      37b24e0b
    • Philippe Canal's avatar
      CompilerId: Tolerate variables named for languages · c8eb3577
      Philippe Canal authored and Brad King's avatar Brad King committed
      If a project or user sets a variable or cache entry named `C`, `CXX`,
      `CUDA`, `Fortran`, `CSharp`, or `ISPC`, we were previously comparing
      each enabled language name to the value of that variable, rather than
      the name itself.  Double-quote the string to take advantage of policy
      `CMP0054`, but also add "x" prefixes to support projects that do not set
      the policy.
      
      This extends a similar fix in commit bd16a985 (CompilerId/Features:
      Tolerate variables named for languages, 2021-04-28) in more places.  In
      particular, ensure that we consider the proper list of compiler ids.
      
      Issue: #22125
      c8eb3577
  20. Jun 17, 2021
  21. Jun 16, 2021
  22. Jun 14, 2021
  23. Jun 11, 2021
Loading