Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,924
    • Issues 3,924
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Merge requests
  • !7301

MSYS/MinGW Makfiles: Select the compiler occurring first in PATH

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Brad King requested to merge brad.king/cmake:mingw-compiler-PATH into master May 26, 2022
  • Overview 2
  • Commits 2
  • Pipelines 1
  • Changes 5

Extend the change from !4625 (merged) to apply to the MSYS/MinGW Makefiles generators too. Drop the implied gcc and g++ default compilers. This allows MinGW/Clang environments to work out of the box.

Also simplify selection of windres as the resource compiler. Since commit 957c2aac, windres is selected automatically when using compilers that target the GNU ABI. Drop the generator-specific preference to make behavior more consistent with the Ninja generator.

Fixes: #23542 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: mingw-compiler-PATH