diff options
author | Brad King <brad.king@kitware.com> | 2013-10-21 13:02:26 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-10-21 13:02:26 (GMT) |
commit | d06610888dd357a7085be0bfff86f5d5d291771d (patch) | |
tree | 2e26a861be940da008a83efeb7fdca9cdb8bc82b /Source/cmw9xcom.cxx | |
parent | 595060f3837a7da28810c644177b63d6319631b6 (diff) | |
parent | 765d783972dbacc336d11803cccf56cdc9aac6c5 (diff) | |
download | CMake-d06610888dd357a7085be0bfff86f5d5d291771d.zip CMake-d06610888dd357a7085be0bfff86f5d5d291771d.tar.gz CMake-d06610888dd357a7085be0bfff86f5d5d291771d.tar.bz2 |
Merge topic 'remove-old-process-execution'
765d783 cmSystemTools: Drop old RunCommand method
52b80b2 exec_program: Re-implement using KWSys Process
c076476 cmake: Drop "cmake -E comspec" Win9x helper
f551135 cmExtraEclipseCDT4Generator: Replace RunCommand with RunSingleCommand
Diffstat (limited to 'Source/cmw9xcom.cxx')
-rw-r--r-- | Source/cmw9xcom.cxx | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/Source/cmw9xcom.cxx b/Source/cmw9xcom.cxx deleted file mode 100644 index ab238d5..0000000 --- a/Source/cmw9xcom.cxx +++ /dev/null @@ -1,45 +0,0 @@ -/*============================================================================ - CMake - Cross Platform Makefile Generator - Copyright 2000-2009 Kitware, Inc., Insight Software Consortium - - Distributed under the OSI-approved BSD License (the "License"); - see accompanying file Copyright.txt for details. - - This software is distributed WITHOUT ANY WARRANTY; without even the - implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the License for more information. -============================================================================*/ -#include "cmSystemTools.h" -#include "cmWin32ProcessExecution.h" - -// this is a test driver program for cmake. -int main (int argc, char *argv[]) -{ - cmSystemTools::EnableMSVCDebugHook(); - if ( argc <= 1 ) - { - std::cerr << "Usage: " << argv[0] << " executable" << std::endl; - return 1; - } - std::string arg = argv[1]; - if ( (arg.find_first_of(" ") != arg.npos) && - (arg.find_first_of("\"") == arg.npos) ) - { - arg = "\"" + arg + "\""; - } - std::string command = arg; - int cc; - for ( cc = 2; cc < argc; cc ++ ) - { - std::string nextArg = argv[cc]; - if ( (nextArg.find_first_of(" ") != nextArg.npos) && - (nextArg.find_first_of("\"") == nextArg.npos) ) - { - nextArg = "\"" + nextArg + "\""; - } - command += " "; - command += nextArg; - } - - return cmWin32ProcessExecution::Windows9xHack(command.c_str()); -} |