summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-15 17:35:26 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-15 17:35:26 (GMT)
commit370a39ce4ba9a1a1ff1d769d64abe3d70a80d299 (patch)
tree9d37f66765ad56a3cb5ddc8d75a791611c3a9778 /Source
parentb1541f3ee5adc63507e3f6e1cfe1a5840d23e3db (diff)
downloadCMake-370a39ce4ba9a1a1ff1d769d64abe3d70a80d299.zip
CMake-370a39ce4ba9a1a1ff1d769d64abe3d70a80d299.tar.gz
CMake-370a39ce4ba9a1a1ff1d769d64abe3d70a80d299.tar.bz2
ENH: Changing kwsysProcess implementation on Cygwin to use the Win32 implementation instead of the UNIX implementation. This makes dealing with misbehaving children work better. The KWSys Win32 process implementaion is more robust than the Cygwin implementation (partly because it doesn't have to exactly reproduce the POSIX api).
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 3e2dee8..f77d3a0 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -344,17 +344,17 @@ SET(KWSYS_CXX_SRCS)
# Add the proper sources for this platform's Process implementation.
IF(KWSYS_USE_Process)
- IF(NOT UNIX)
+ IF(WIN32)
# Use the Windows implementation. We need the encoded forwarding executable.
SET(KWSYS_C_SRCS ${KWSYS_C_SRCS} ProcessWin32.c
${PROJECT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c)
SET_SOURCE_FILES_PROPERTIES(
${PROJECT_BINARY_DIR}/${KWSYS_NAMESPACE}ProcessFwd9xEnc.c
PROPERTIES GENERATED 1)
- ELSE(NOT UNIX)
+ ELSE(WIN32)
# Use the UNIX implementation.
SET(KWSYS_C_SRCS ${KWSYS_C_SRCS} ProcessUNIX.c)
- ENDIF(NOT UNIX)
+ ENDIF(WIN32)
ENDIF(KWSYS_USE_Process)
# Add sources for Base64 encoding.
@@ -436,7 +436,7 @@ ADD_DEFINITIONS("-DKWSYS_NAMESPACE=${KWSYS_NAMESPACE}")
# file and build it into the library. Win9x platforms reproduce the
# executable into a temporary directory when it is needed.
IF(KWSYS_USE_Process)
- IF(NOT UNIX)
+ IF(WIN32)
# Build the forwarding executable itself and a program that will
# encode it into a C file.
ADD_EXECUTABLE(${KWSYS_NAMESPACE}ProcessFwd9x ProcessFwd9x.c)
@@ -477,7 +477,7 @@ IF(KWSYS_USE_Process)
# Make sure build occurs in proper order.
ADD_DEPENDENCIES(${KWSYS_NAMESPACE} ${KWSYS_NAMESPACE}ProcessFwd9x
${KWSYS_NAMESPACE}EncodeExecutable)
- ENDIF(NOT UNIX)
+ ENDIF(WIN32)
ENDIF(KWSYS_USE_Process)
#-----------------------------------------------------------------------------