什么是 ALL_BUILD 和 ZERO_CHECK,我需要它们吗?

2023-08-27C/C++开发问题
42

本文介绍了什么是 ALL_BUILD 和 ZERO_CHECK,我需要它们吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我创建了一个简单的 CMakeLists.txt:

I've created a simple CMakeLists.txt:

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

然而,当我从 CMake 生成 VS2012 或 VS2010 项目时,我得到了这两个额外的条目 - ALL_BUILD 和 ZERO_CHECK.我不明白他们的目的,我需要他们吗?

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?

推荐答案

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

Armin Berres — 2008 年 11 月 22 日下午 3:12:41

Armin Berres — 11/22/2008, 3:12:41 PM

ZERO_CHECK 将重新运行 cmake.您可以/应该在之后执行此操作更改 CMake 文件中的某些内容.

ZERO_CHECK will rerun cmake. You can/should execute this after changing something on your CMake files.

ALL_BUILD 只是一个构建所有项目的目标在主动解决方案中,我想可以将其与全部解决"进行比较.

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".

这篇关于什么是 ALL_BUILD 和 ZERO_CHECK,我需要它们吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

无法访问 C++ std::set 中对象的非常量成员函数
Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)...
2024-08-14 C/C++开发问题
17

从 lambda 构造 std::function 参数
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)...
2024-08-14 C/C++开发问题
25

STL BigInt 类实现
STL BigInt class implementation(STL BigInt 类实现)...
2024-08-14 C/C++开发问题
3

使用 std::atomic 和 std::condition_variable 同步不可靠
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)...
2024-08-14 C/C++开发问题
17

在 STL 中将列表元素移动到末尾
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)...
2024-08-14 C/C++开发问题
9

为什么禁止对存储在 STL 容器中的类重载 operator&()?
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)...
2024-08-14 C/C++开发问题
6