Commit 9619ee3a authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

Another attempt on Windows 98

parent ef2af051
......@@ -77,6 +77,8 @@ IF (WIN32)
)
IF( NOT BORLAND )
LINK_LIBRARIES( rpcrt4.lib )
ADD_EXECUTABLE(cmw9xcom cmw9xcom.cxx)
TARGET_LINK_LIBRARIES(cmw9xcom CMakeLib)
SUBDIRS(MFCDialog)
ENDIF( NOT BORLAND )
ENDIF(NOT UNIX)
......
......@@ -1480,7 +1480,7 @@ bool RunCommandViaWin32(const char* command,
int& retVal,
bool verbose)
{
#if (1) // defined(__BORLANDC__)
#if defined(__BORLANDC__)
return ::WindowsRunCommand(command, dir, output, retVal, verbose);
#else // Visual studio
::SetLastError(ERROR_SUCCESS);
......
......@@ -433,8 +433,9 @@ int cmake::AddCMakePaths(const char *arg0)
"Path to CMake installation.", cmCacheManager::INTERNAL);
#ifdef _WIN32
cmSystemTools::SetWindows9xComspecSubstitute(
(cMakeSelf + " -E comspec").c_str());
std::string path = cmSystemTools::GetFilenamePath(cMakeSelf);
std::string comspec = path + "\\cmw9xcom";
cmSystemTools::SetWindows9xComspecSubstitute(comspec.c_str());
#endif
return 1;
}
......
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "cmSystemTools.h"
#include "cmWin32ProcessExecution.h"
// this is a test driver program for cmake.
int main (int argc, char *argv[])
{
if ( argc <= 1 )
{
std::cerr << "Usage: " << argv[0] << " executable" << std::endl;
return 1;
}
std::string command;
int cc;
for ( cc = 1; cc < argc; cc ++ )
{
command += argv[cc];
}
return cmWin32ProcessExecution::Windows9xHack(command.c_str());
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment