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,871
    • Issues 3,871
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 20
    • Merge requests 20
  • 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
  • #17804
Closed
Open
Created 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 an admin enable hashed storage. More information
Assignee
Assign to
Time tracking