我创建了一个简单的 CMakeLists.txt:
cmake_minimum_required(VERSION 2.8)
project (HelloWorld)
add_executable (HelloWorld main.cpp)
但是,当我从 CMake 生成 VS2012 或 VS2010 项目时,我得到了这 2 个附加条目 - ALL_BUILD 和 ZERO_CHECK。 我不明白他们的目的,我需要他们吗?
最佳答案
来自 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".
关于c++ - ALL_BUILD 和 ZERO_CHECK 是什么,我需要它们吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27175754/