VS: Per-config source file paths using $<CONFIG> do not work
With the code
cmake_minimum_required(VERSION 3.17)
project(Foo C)
add_library(foo "foo-$<CONFIG>.c")
CMake's Visual Studio generators fail:
CMake Error at CMakeLists.txt:3 (add_library):
Cannot find source file:
foo-.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Edited by Brad King