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,106
    • Issues 4,106
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • 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
  • #22343
Closed
Open
Issue created Jun 25, 2021 by Brad King@brad.kingOwner

CMAKE_MSVCIDE_RUN_PATH: Ignored unless a language is enabled

The implementation is guarded by MSVC_IDE, but that is only set here when a language is enabled using a MSVC-like compiler.

For example:

cmake_minimum_required(VERSION 3.20)
project(Issue22343 LANGUAGES NONE)
set(CMAKE_MSVCIDE_RUN_PATH "${CMAKE_SOURCE_DIR}")
add_custom_target(example COMMAND echo)

The PATH is not set inside example.vcxproj. Adding set(MSVC_IDE 1) works around the problem.

Edited Jun 25, 2021 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