Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,193
    • Issues 3,193
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 16
    • Merge Requests 16
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • CMake
  • CMakeCMake
  • Issues
  • #21497

Closed
Open
Opened Nov 24, 2020 by Kumar Gala@galak

CMAKE 3.19 - cmake_check_compiler_flag doesn't pass along CMAKE_REQUIRED_FLAGS, etc.

It seems that with 3.19, check_c_compiler_flag no longer respects CMAKE_REQUIRED_FLAGS.

check_c_compiler_flag -> cmake_check_compiler_flag

It looks like there are two implementations of cmake_check_compiler_flag one in Modules/Internal/CheckCompilerFlag.cmake and the other in Modules/Internal/CMakeCheckCompilerFlag.cmake.

If the version on CMakeCheckCompilerFlag.cmake wins than CMAKE_REQUIRED_FLAGS and related aren’t respected. Is this expected behavior?

And if so how do you control which version of cmake_check_compiler_flag gets pulled in?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
3.19.2
Milestone
3.19.2 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: cmake/cmake#21497