[CMake] Visual Studio 2013 warning MSB8028

Saad Khattak saadrustam at gmail.com
Fri Sep 5 22:25:29 EDT 2014


For future reference:

The solution is to delete your build folder and generate the projects
again. Not sure what is changed by CMake in 3.0 but VS does not like it
unless the build folder is cleaned.


On Wed, Sep 3, 2014 at 6:09 PM, Saad Khattak <saadrustam at gmail.com> wrote:

> I have a solution with multiple projects including a CMake INSTALL project
> for installing the binaries. With CMake Version 3.0 I am receiving the
> following warning for each of my projects in the solution:
> "warning MSB8028: The intermediate directory (myProject.dir\Debug\)
> contains files shared from another project (myProject.vcxproj). This can
> lead to incorrect clean and rebuild behavior."
>
> where myProject is replaced by the name of each of the projects in the
> solution.
>
> Previous cmake versions did not produce this warning with VS 2013. I am
> not sure how to resolve this warning as the recommended fix is to ensure
> that the "Intermediate Directory" variable for each project is unique. As
> far as I can tell, it is indeed unique.
>
> I could not find any topics with respect to this warning and CMake.
> Appreciate any help regarding this behaviour. If it is deemed a bug, then I
> will file a bug report.
>
> - Saad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140905/48f5878a/attachment.html>


More information about the CMake mailing list