CMake/Tests/RunCMake/VS10Project/SourceGroupCMakeLists.cmake
Brad King 77303314dc Restore support for a custom source group for CMakeLists.txt
Since commit v3.11.0-rc1~467^2 (VS,Xcode: Add CMakeLists.txt sources
without mutating targets, 2017-10-18) we do not add `CMakeLists.txt` to
target sources but instead generate references to them directly.  This
accidentally dropped generation of the `.vcxproj.filters` entry for a
source group in which `CMakeLists.txt` is the only member.

Fixes: #18795
2019-01-14 08:43:30 -05:00

4 lines
119 B
CMake

set(CMAKE_CONFIGURATION_TYPES Debug)
add_custom_target(foo)
source_group("CMakeListsSourceGroup" FILES CMakeLists.txt)