1. 06 Aug, 2020 3 commits
  2. 04 Aug, 2020 1 commit
  3. 03 Aug, 2020 1 commit
  4. 30 Jul, 2020 2 commits
  5. 29 Jul, 2020 3 commits
  6. 28 Jul, 2020 4 commits
    • Adam Badura's avatar
      GoogleTest: Fix include path in the generated file · 83285819
      Adam Badura authored
      The generated ..._include.cmake file contained an inclusion of
      GoogleTestAddTests without any path. In general, this is a good
      approach since it enables to correctly catch possibly
      user-customized files.
      
      However, in this case, it didn’t work this way since the
      ..._include.cmake file is evaluated by a separate CMake call under
      a custom command. Because of this, the CMAKE_MODULE_PATH is not set
      as expected by the user and the said inclusion catches CMake own
      version of the module rather than the possibly user-customized one.
      
      This change fixes this by making the inclusion with an absolute path
      determined upon the ..._include.cmake file generation.
      83285819
    • Thomas Bernard's avatar
      Detect the correct target architecture for clang compilers. · 270e0d9c
      Thomas Bernard authored
      During compiler identification, if CMAKE_{C,CXX}_COMPILER_TARGET is
      defined, the corresponding clang target flag is used to guaranty proper
      target architecture detection.
      270e0d9c
    • T.J. Corona's avatar
      BundleUtilities: do not run install_name_tool on scripts · 45ed314b
      T.J. Corona authored
      Use the same approach as commit 08be74bf (GetPrerequisites: Fix
      handling of executable scripts, 2018-12-16, v3.14.0-rc1~206^2).
      45ed314b
    • Mike Gelfand's avatar
      FindCURL: Fix list index check after search · 0faedae3
      Mike Gelfand authored
      Fix logic added by commit fc5afbe9 (FindCURL: support COMPONENTS to
      check features, 2018-11-28, v3.14.0-rc1~287^2~2).
      
      When searching for particular components and `curl-config` reports one of
      the components being searched for first in the list, `find_package` fails.
      This is due to the check that treats non-zero index in the list as success
      and zero index as failure, while documentation on `list(FIND)` states that
      failure to find an element results in return value of -1 (not 0). I'm
      hitting this when building cURL with support for HTTP and HTTPS protocols
      only, and then trying to `find_package(CURL COMPONENTS HTTP HTTPS)`.
      
      I'm using `if(NOT x EQUAL -1)` check form as it appears to be the most used
      throughout the modules.
      
      While fixing this issue I've looked through all the uses of `list(FIND)` in
      other modules but wasn't able to find improper use except here.
      0faedae3
  7. 27 Jul, 2020 1 commit
    • Brad King's avatar
      Compilers: Ignore -print-sysroot prefix when it is '/' · e67d9c6e
      Brad King authored
      Since commit 8cc384f6 (Compilers: Add paths from -print-sysroot to
      system prefix path, 2020-03-25, v3.18.0-rc1~337^2) we prepend the
      compiler's sysroot to `CMAKE_SYSTEM_PREFIX_PATH`.  This does not
      make sense when the prefix is just `/`, such as on Ubuntu 16.04's
      system compiler.
      
      Fixes: #21019
      e67d9c6e
  8. 24 Jul, 2020 2 commits
  9. 23 Jul, 2020 1 commit
    • Fred Baksik's avatar
      Toolchain: Capture all arguments from CMAKE_<LANG>_COMPILER · 6f1af899
      Fred Baksik authored
      Capture CMAKE_<LANG>_COMPILER_ARG1 from CMAKE_<LANG>_COMPILER in the
      same fashion that it is from $ENV{<LANG>}.
      
      Since get_filename_component() returns a single string of all the
      arguments from $ENV{<LANG>}, a single string of arguments will be
      constructed from the items contained in CMAKE_<LANG>_COMPILER.
      
      Fixes #20089
      6f1af899
  10. 22 Jul, 2020 2 commits
    • Jean-Christophe Fillion-Robin's avatar
      Fix typos identified using codespell · 20737380
      Jean-Christophe Fillion-Robin authored
      See https://github.com/codespell-project/codespell#readme
      
      The following command was used:
      
      ```
      codespell -q6 --skip="\
      .git,\
      *.json,\
      ./Copyright.txt,\
      ./Help/command/foreach.rst,\
      ./Help/prop_test/REQUIRED_FILES.rst,\
      ./Help/variable/CTEST_COVERAGE_COMMAND.rst,\
      ./Modules/CMakeCheckCompilerFlagCommonPatterns.cmake,\
      ./Modules/CMakeRCInformation.cmake,\
      ./Modules/Internal/CPack/NSIS.template.in,\
      ./Modules/FindMatlab.cmake,\
      ./Modules/MatlabTestsRedirect.cmake,\
      ./Modules/Platform/Windows-Clang.cmake,\
      ./Modules/Platform/Windows-Intel-Fortran.cmake,\
      ./Modules/Platform/Windows-MSVC.cmake,\
      ./Source/CMakeVersion.cmake,\
      ./Source/cmConvertMSBuildXMLToJSON.py,\
      ./Source/cmCreateTestSourceList.cxx,\
      ./Source/cmGlobalVisualStudio10Generator.cxx,\
      ./Source/cmExportBuildFileGenerator.cxx,\
      ./Source/cmExportInstallAndroidMKGenerator.cxx,\
      ./Source/cmExportInstallFileGenerator.cxx,\
      ./Source/cmExportSet.cxx,\
      ./Source/cmExportTryCompileFileGenerator.cxx,\
      ./Source/cmFindPackageCommand.cxx,\
      ./Source/cmInstallCommand.cxx,\
      ./Source/cmGeneratorExpressionLexer.cxx,\
      ./Source/cmLocalVisualStudio7Generator.cxx,\
      ./Source/cmOrderDirectories.cxx,\
      ./Source/cmTarget.cxx,\
      ./Source/kwsys/*,\
      ./Source/QtDialog/CMakeSetupDialog.ui,\
      ./Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx,\
      ./Source/CTest/cmParseCoberturaCoverage.h,\
      ./Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in,\
      ./Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf,\
      ./Tests/RunCMake/CPack/tests/DMG_SLA/German.license.txt,\
      ./Tests/RunCMake/CPack/tests/DMG_SLA/German.menu.txt,\
      ./Tests/RunCMake/GoogleTest/xml_output.cpp,\
      ./Tests/RunCMake/Make/TargetMessages*,\
      ./Utilities/*,\
      " \
      -L "\
      dependees,\
      endwhile,\
      fo,\
      filetest,\
      helpfull,\
      nd,\
      objext,\
      stoll,\
      supercedes,\
      superceded,\
      vas,\
      varn,\
      "
      ```
      20737380
    • Tin Huynh's avatar
      PGI: Remove -A from the C++ flags we use when CXX_EXTENSIONS is OFF · 52eee193
      Tin Huynh authored
      Since commit 9b97cb55 (PGI: Add language standards for PGI,
      2017-05-01, v3.9.0-rc1~174^2), we have passed the `-A` flag to
      the PGI C++ compiler when specifying a C++ standard flag with
      compiler extensions turned off.  The flag is not meant for that.
      The PGI C++ standard flags do not turn extensions on by default
      and have a separate `--gnu_extensions` flag for that which we
      already use when CXX_EXTENSIONS is ON.  Simply drop the `-A` flag.
      
      Fixes: #20997
      52eee193
  11. 20 Jul, 2020 2 commits
    • Aiden Woodruff's avatar
      CheckTypeSize: Use C++-style headers to check for std:: types · 371072e9
      Aiden Woodruff authored
      In order to check for types like `std::uint8_t` in C++, we need to
      include `<cstdint>` instead of `<stdint.h>`.
      371072e9
    • Brad King's avatar
      Xcode: Explicitly specify default native architecture on macOS · 26673bf4
      Brad King authored
      When `CMAKE_OSX_ARCHITECTURES` is not specified, we add the Xcode
      setting `ONLY_ACTIVE_ARCH = YES` with the intention of targeting the
      native architecture of the host.  However, the default `ARCHS` value
      chosen by "Xcode 12 Universal Apps" includes multiple architectures.
      Add an explicit `ARCHS` setting with value `$(NATIVE_ARCH_ACTUAL)`
      to tell Xcode to use the host's native architecture only.
      
      Fixes: #20893
      26673bf4
  12. 16 Jul, 2020 1 commit
  13. 14 Jul, 2020 9 commits
  14. 09 Jul, 2020 2 commits
    • Torgeir Rusten's avatar
      IRSL: Fix path to Intel 32-bit redist libraries · f332ce12
      Torgeir Rusten authored
      The path to the 32 bit libraries in the Intel windows/redist folder use
      ia32.  I don't remember if this has changed at some point, but ia32 has
      been used at least since Intel Fortran XE 2018.
      f332ce12
    • Brad King's avatar
      FindOpenMP: Set version variables every time CMake runs · 656d6ea8
      Brad King authored
      The version is determined in two steps.  First, the "spec date" is
      detected and cached.  Second, the date is converted to a version.
      Move the second step out of the spec date cache guard condition
      so that it runs every time even if the spec date is already cached.
      
      Fixes: #19150
      656d6ea8
  15. 08 Jul, 2020 5 commits
  16. 07 Jul, 2020 1 commit