diff options
Diffstat (limited to 'Source/cmaketest.cxx')
-rw-r--r-- | Source/cmaketest.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx index 28f9b94..0a6a8bf 100644 --- a/Source/cmaketest.cxx +++ b/Source/cmaketest.cxx @@ -52,7 +52,8 @@ int main (int argc, char *argv[]) { projectName = argv[5]; } - + + // WARNING: the rest of the args is passed to cmake /** * Run an executable command and put the stdout in output. @@ -85,6 +86,15 @@ int main (int argc, char *argv[]) std::string generator = "-G"; generator += CMAKE_GENERATOR; args.push_back(generator); + + if(argc > 6) + { + for (int j = 6; j < argc ; j++) + { + args.push_back(argv[j]); + } + } + std::cout << "Generating build files...\n"; cmake cm; |