How do I prevent CMake from creating more than one Project (ALL_BUILD and ZERO_CHECK)

Brandyon Scott 20 Reputation points
2023-06-11T21:56:49.5033333+00:00

I just want to generate the Project/Solution that would (should) be created from the source code folder, and not the other two (completely separate) Projects that are named in the above Title. With the other two Projects being created, I am unable to build the Solution or the Project I'm working on, after the fact, as the IDE says that it cannot open one thing or the other.

Cmake is creating a functional .exe file, so I know that I'm on the right track, but I can't figure out a preset or other way to rein in CMake.

I have been invoking Cmake from both the IDE and PowerShell.

Help!

Developer technologies | C++
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 78,236 Reputation points Volunteer Moderator
    2023-06-12T01:33:34.97+00:00

    they are not projects but targets. ALL_BUILD is the ms version of make all. the ZERO_CHECK target should be used if the cmake file is changed.

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

    set(CMAKE_SUPPRESS_REGENERATION true)
    

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.