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,183
    • Issues 3,183
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 15
    • Merge Requests 15
  • 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
  • #17804

Closed
Open
Opened Mar 07, 2018 by Mark Ingram@MarkIngramUKContributor

vs_link_exe / vs_link_dll ignores CMAKE_RC_COMPILER

vs_link_exe / vs_link_dll require rc.exe to be in your path in order to succeed. I realise these are internal functions, but they're called as part of the initial compiler identification. If I configure CMake with:

CMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang-cl.exe"
CMAKE_LINKER="C:/Program Files/LLVM/bin/lld-link.exe"
CMAKE_RC_COMPILER="C:/Program Files (x86)/Windows Kits/10/bin/x64/rc.exe"

Then I would expect CMAKE_RC_COMPILER to be used in-place of a hardcoded rcCommand.push_back("rc"); (cmcmd.cxx, line 1794).

It's worth noting that CMAKE_LINKER must be an absolute path, else linking will fail as well.

Edited Mar 07, 2018 by Mark Ingram
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
3.14.0
Milestone
3.14.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: cmake/cmake#17804