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,800
    • Issues 3,800
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • 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
  • #19769

Closed
Open
Created Sep 29, 2019 by Boris Rasin@Boris-Rasin

source_group: TREE regression in 3.15 on generated files

Run cmake -G "Visual Studio 16 2019" .

  • With CMake 3.14, file is correctly listed as folder/file.cpp in VS Solution Explorer.
  • With CMake 3.15, file is erroneously listed as Source Files/file.cpp in VS Solution Explorer.
cmake_minimum_required(VERSION 3.14)
project(test)

set(source ${CMAKE_CURRENT_SOURCE_DIR}/folder/file.cpp)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${source})
add_executable(test ${source})
add_custom_command(OUTPUT ${source} COMMAND cmd)
Edited Sep 30, 2019 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