What are ALL_BUILD and ZERO_CHECK and do I need them?

C++Visual StudioCmake

C++ Problem Overview


I've created a simple CMakeLists.txt:

cmake_minimum_required(VERSION 2.8)
project (HelloWorld)
add_executable (HelloWorld main.cpp)

When I generate a VS2012 or VS2010 project from CMake, however, I get these 2 additional entries - ALL_BUILD and ZERO_CHECK. I don't understand their purpose, do I need them?

enter image description here

C++ Solutions


Solution 1 - C++

From https://cmake.org/pipermail/cmake/2008-November/025448.html:

> Armin Berres — 11/22/2008, 3:12:41 PM > > ZERO_CHECK will rerun cmake. You can/should execute this after > changing something on your CMake files. > > ALL_BUILD is simply a target which builds all and everything project > in the active solution, I guess one can compare it to "make all".

Solution 2 - C++

Add the following line to you CMakeLists.txt to suppress generation of ZERO_CHECK:

set(CMAKE_SUPPRESS_REGENERATION true)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionsashoalmView Question on Stackoverflow
Solution 1 - C++sashoalmView Answer on Stackoverflow
Solution 2 - C++user2902980View Answer on Stackoverflow