PCH+VS: CMake 3.16.6 -> CMake 3.16.7 regression. Excludes from build all the sources
Code:
add_executable(${PROJECT_NAME} test.cpp)
target_precompile_headers(${PROJECT_NAME} PRIVATE
"$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}/stdafx.h>"
makes next blocks at generated vs 2017 vcxproj file
<ClCompile Include="test.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
</ClCompile>
that leads to different compile and link errors.
Ninja generator is ok