diff options
| author | Karsten Sperling <karsten@sperling.co.nz> | 2016-11-17 07:40:59 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2016-11-17 18:40:29 (GMT) |
| commit | 024451383827969c30f71c5335c66f348193a2d7 (patch) | |
| tree | 0c7a0048e732b6d9c9de6a4d6f4a95801851b9e1 /Tests/Module/WriteCompilerDetectionHeader/main_multi.c | |
| parent | 095279bc94c81c4076de20474f1d3dd186764388 (diff) | |
| download | CMake-024451383827969c30f71c5335c66f348193a2d7.zip CMake-024451383827969c30f71c5335c66f348193a2d7.tar.gz CMake-024451383827969c30f71c5335c66f348193a2d7.tar.bz2 | |
ExternalProject: Do not trip over pre-existing 'cmd' variable
Callers of `_ep_get_build_command` do not initialize the output variable
they pass and expect the function to unconditionally set it. Revise the
function to not check its own output variable. Otherwise if a `cmd`
variable happens to be set when `ExternalProject_Add` is called then it
will be erroneously used as the default `BUILD`, `TEST`, and `INSTALL`
command.
Diffstat (limited to 'Tests/Module/WriteCompilerDetectionHeader/main_multi.c')
0 files changed, 0 insertions, 0 deletions
