VS2019 issuing warning MSB8064 when using CMakeAddFortranSubdirectory
- This might be related to #19737 (closed) (VS: 16.4.0 warns on CustomBuild that does not create all outputs).
- Windows 10
- Visual Studio 2019 x64 using CMake-16.1.
- CMakeAddFortranSubdirectory points to gfortran provided by MSYS2 MinGW (64-bit).
- Configure and builds work, but I'm seeing the following warning:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): \ warning MSB8064: Custom build for item "C:\work\vs2019-x64-Debug\myproj\CMakeFiles\fb71b6db62d92f153cbc7df89518e09c\cafs_build-build.rule" \ succeeded, but specified dependency \ "c:\work\vs2019-x64-debug\myproj\src\cafs\cafs_build-prefix\src\cafs_build-stamp\debug\cafs_build-forcebuild" does not exist. \ This may cause incremental build to work incorrectly.
This warning is issued after the library has been successfully created, so I think it is related to touching CMake's progress files that are not correctly registered as generated files in VS. I'm not really sure how to debug this further.