Helper function to add the Start Instrumentation command
| 77 | #ifndef CMAKE_BOOTSTRAP |
| 78 | // Helper function to add the Start Instrumentation command |
| 79 | void addInstrumentationCommand(cmInstrumentation* instrumentation, |
| 80 | std::vector<std::string>& commands) |
| 81 | { |
| 82 | if (instrumentation->HasQuery()) { |
| 83 | std::string instrumentationCommand = |
| 84 | "$(CTEST_COMMAND) --start-instrumentation $(CMAKE_BINARY_DIR)"; |
| 85 | # ifndef _WIN32 |
| 86 | /* |
| 87 | * On Unix systems, Make will prefix the command with `/bin/sh -c`. |
| 88 | * Use exec so that Make is the parent process of the command. |
| 89 | * Add a `;` to convince BSD make to not optimize out the shell. |
| 90 | */ |
| 91 | instrumentationCommand = cmStrCat("exec ", instrumentationCommand, " ;"); |
| 92 | # endif |
| 93 | commands.push_back(instrumentationCommand); |
| 94 | } |
| 95 | } |
| 96 | #endif |
| 97 | |
| 98 | // Helper predicate for removing absolute paths that don't point to the |
no test coverage detected
searching dependent graphs…