[CMake] Visual Studio 2013, increamental builds, intermediate directories and long target names

Dan Kegel dank at kegel.com
Sun May 31 12:43:09 EDT 2015


Did you try the workaround suggested in the first link you gave, i.e.

set( RatherLongLibraryName_GUID_CMAKE <generated GUID> CACHE INTERNAL
"remove this and Visual Studio will mess up incremental builds")


On Sun, May 31, 2015 at 9:04 AM,  <david_bjornbak at keysight.com> wrote:
> Unfortunately, we're hitting an issue migrating from VS 2012 to VS 2103 with
> Cmake working with long target names.
>
>
>
> Apparently the only know workarounds to the issues listed below is to
> shorten target names but,  we're working with fairly long set of projects
> and it's not practical to rename the target names involved.   Imaging going
> through something twice the size of VTK and changing target names and
> keeping the meaning of the names.
>
>
>
> I didn't look into the cmake source code around this yet but, I wanted to
> see if this issue is viewed as a Microsoft limitation that's not practical
> to code around or not.
>
>
>
> http://stackoverflow.com/questions/28959488/how-to-enable-incremental-builds-for-vs-2013-with-cmake-and-long-target-names
>
> http://stackoverflow.com/questions/29726394/warning-msb8028-the-intermediate-directory-debug-contains-files-shared-from
>
>
>
>
>
>
>
> ++David->Bjornbak;
>
>
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake


More information about the CMake mailing list