Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 2,690
    • Issues 2,690
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 24
    • Merge Requests 24
  • Packages
    • Packages
    • Container Registry
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • CMake
  • CMakeCMake
  • Issues
  • #18261

Closed
Open
Opened Aug 15, 2018 by Alberto Garcia Illera@illera88
  • Report abuse
  • New issue
Report abuse New issue

Disable /FC option in Visual studio

The default setting for "Full Path of Source Code File in Diagnostics" seems to be set to enabled. In Visual Studio, if you open the project's properties and navigate to Configuration Properties -> C/C++ -> Advanced, you will find the "Use Full Paths" property, which is enabled. You may also recognize that it is printed in a non-bold font, indicating a default value. Set it to "no" and it turns bold.

Saving the project will add a line to the .vcxproj file:

[...]
<ClCompile>
    [...]
    <UseFullPaths>false</UseFullPaths>
</ClCompile>
[...]

Obviously, CMake needs to add this line to explicitly disable the compile flag. However, from a search of the repository, we learn that there is currently no implementation to achieve this. The FC flag is mapped to nothing or to true:

[...]
{ "UseFullPaths", "FC", "", "true", 0 },
[...]

CMake should provide a way to disable /FC

Assignee
Assign to
3.13.0
Milestone
3.13.0
Assign milestone
Time tracking
None
Due date
None
2
Labels
gen:vs triage:env-regression
Assign labels
  • View project labels
Reference: cmake/cmake#18261