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 16
    • Merge requests 16
  • 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
  • Issues
  • #21497
Closed
Open
Created 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
Time tracking