Skip to content

Commit

Permalink
microsoft#685 Add debug details for cmake version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
KoeMai committed May 17, 2019
1 parent 35c1e28 commit 5b11ae6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmake/cmake-executable.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import * as logging from '../logging';
import * as proc from '../proc';
import * as util from '../util';

const log = logging.createLogger('cmake-executable');

export interface CMakeExecutable {
path: string;
isPresent: boolean;
Expand All @@ -19,6 +22,7 @@ export async function getCMakeExecutableInformation(path: string): Promise<CMake
if (path.length != 0) {
try {
const version_ex = await proc.execute(path, ['--version']).result;
log.debug('CMake-Process Result: ', JSON.stringify(version_ex));
if (version_ex.retc === 0 && version_ex.stdout) {
cmake.isPresent = true;

Expand Down

0 comments on commit 5b11ae6

Please sign in to comment.