Another thing to add to the post would be that the target_source should not be an executable, as it will refuse the FILESET. At least that is my understanding so far. I have opened an issues with CMake and vcpkg ( the error is coming from vcpkg.cmake). I was using CMake 3.26.0-rc4