Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The method to verify the status of a CMake target without executing the build process is by using the CMake command-line tool to generate a build file and then running the cmake --build <path/to/build> command with the -n or --dry-run option. This will print out the actual commands that would be executed during the build process, but without actually executing them. You can then check if the target appears in the list of commands to be executed. If it does, then it is included in the build, and if it doesn't, then it is not.