What are ALL_BUILD and ZERO_CHECK and do I need them?

后端 未结 2 1850
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 18:22

I\'ve created a simple CMakeLists.txt:

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

When I

相关标签:
2条回答
  • 2020-12-07 18:45

    After some more searching, I found the answer at 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".

    0 讨论(0)
  • 2020-12-07 19:00

    add this line to you CMakeLists.txt to supress generation of ZERO_CHECK.

    set(CMAKE_SUPPRESS_REGENERATION true)
    
    0 讨论(0)
提交回复
热议问题