Skip to content
GitLab
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 4,103
    • Issues 4,103
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and 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
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #19065
Closed
Open
Issue created Mar 20, 2019 by Francois Lion@flion

ARMCC: Mistakenly identified as GNU compiler

The ARMCC (ARM toolchain) support seems to be broken in CMake 3.13.4. The reason is probably that ARMCC generates the predefined marco __GNU__ and the CMakeCompilerIdDetection.cmake script recognizes ARMCC as a GNU Compiler.

changing Line 73:

   list(APPEND ordered_compilers
      SCO
      AppleClang
      Clang
      GNU
      MSVC
      ADSP
      IAR
      ARMCC
    )

by

   list(APPEND ordered_compilers
      SCO
      ARMCC
      AppleClang
      Clang
      GNU
      MSVC
      ADSP
      IAR
    )

in the Modules/CMakeCompilerIdDetection.cmake fixes the problem for me

Regards, Francois Lion

Edited Mar 20, 2019 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking