BUG: need a dummy first argument to cmake
This commit is contained in:
parent
baaf5eae7d
commit
df32e28b1d
@ -41,8 +41,9 @@ int cmTryCompileCommand::CoreTryCompileCode(
|
|||||||
{
|
{
|
||||||
if (argv[i] == "CMAKE_FLAGS")
|
if (argv[i] == "CMAKE_FLAGS")
|
||||||
{
|
{
|
||||||
extraArgs++;
|
// CMAKE_FLAGS is the first argument because we need an argv[0] that
|
||||||
++i;
|
// is not used, so it matches regular command line parsing which has
|
||||||
|
// the program name as arg 0
|
||||||
for (; i < argv.size() && argv[i] != "COMPILE_DEFINITIONS" &&
|
for (; i < argv.size() && argv[i] != "COMPILE_DEFINITIONS" &&
|
||||||
argv[i] != "OUTPUT_VARIABLE";
|
argv[i] != "OUTPUT_VARIABLE";
|
||||||
++i)
|
++i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user