mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
Call MatchChildrenFiles() instead of MatchesFiles() in order to account for files being in subgroups of source groups. Fixes: #23880
14 lines
413 B
CMake
14 lines
413 B
CMake
cmake_policy(SET CMP0011 NEW)
|
|
|
|
set(vcFiltersFile "${RunCMake_TEST_BINARY_DIR}/SourceGroupFileSet.vcxproj.filters")
|
|
if(NOT EXISTS "${vcFiltersFile}")
|
|
set(RunCMake_TEST_FAILED "Filters file ${vcFiltersFile} does not exist.")
|
|
return()
|
|
endif()
|
|
|
|
file(STRINGS "${vcFiltersFile}" lines)
|
|
|
|
include(${RunCMake_TEST_SOURCE_DIR}/SourceGroupHelpers.cmake)
|
|
|
|
find_source_group("${lines}" "Header Files\\SourceGroupFileSet")
|