[CMake] Visual Studio 2010 is crashing when building project

James Bigler jamesbigler at gmail.com
Thu Jan 26 12:16:20 EST 2012


On Thu, Jan 26, 2012 at 9:45 AM, Robert Dailey <rcdailey at gmail.com> wrote:

> Hi,
>
> I am using CMake 2.8.7 and generating for VS2010. When I build any
> project, visual studio crashes. I think it might be because of ZERO_CHECK.
>
> Any idea what this might be? Could it be the ZERO_CHECK visual studio
> macros ? Note that my same scripts work just fine in VS2003, VS2005, and
> VS2008.
>
> Sorry for the lack of information but I'm not sure how to approach this
> issue...
>
> ---------
> Robert Dailey
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>

I've never experienced crashing, but there are issues with the plugin:

http://www.gccxml.org/Bug/view.php?id=11258

You can manually disable it with this in your CMakeLists.txt file:

# Don't configure during build.
option(CMAKE_SUPPRESS_REGENERATION "Suppress regeneration of build scripts
during build" OFF)
mark_as_advanced(CMAKE_SUPPRESS_REGENERATION)

This disables the ZERO_CHECK project and all the associated build rules on
the CMakeLists.txt files (well, actually the CMakeLists.txt files don't get
automatically added to the projects).

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120126/fa9b53f5/attachment.htm>


More information about the CMake mailing list