summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2005-10-06 21:16:07 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2005-10-06 21:16:07 (GMT)
commit07b45da69356a3cd0e1b7ed136449c38a9d82c69 (patch)
tree7886b4d7c043229be8867ca9fef97c8054980247 /Source/kwsys
parent0281892890a87ede9a102164d50ee7127e3273b6 (diff)
downloadCMake-07b45da69356a3cd0e1b7ed136449c38a9d82c69.zip
CMake-07b45da69356a3cd0e1b7ed136449c38a9d82c69.tar.gz
CMake-07b45da69356a3cd0e1b7ed136449c38a9d82c69.tar.bz2
ENH: CMake kills me (so does Cygwin)
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/CMakeLists.txt3
-rw-r--r--Source/kwsys/testSystemTools.binbin0 -> 766 bytes
-rw-r--r--Source/kwsys/testSystemTools.cxx4
-rw-r--r--Source/kwsys/testSystemTools.h.in2
4 files changed, 5 insertions, 4 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 51066b5..c0b4f66 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -620,7 +620,8 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
IF(BUILD_TESTING)
- SET(TEST_SYSTEMTOOLS_EXE_FILE ${CMAKE_COMMAND})
+ SET(TEST_SYSTEMTOOLS_BIN_FILE
+ "${CMAKE_CURRENT_SOURCE_DIR}/testSystemTools.bin")
SET(TEST_SYSTEMTOOLS_SRC_FILE
"${CMAKE_CURRENT_SOURCE_DIR}/testSystemTools.cxx")
CONFIGURE_FILE(
diff --git a/Source/kwsys/testSystemTools.bin b/Source/kwsys/testSystemTools.bin
new file mode 100644
index 0000000..961a404
--- /dev/null
+++ b/Source/kwsys/testSystemTools.bin
Binary files differ
diff --git a/Source/kwsys/testSystemTools.cxx b/Source/kwsys/testSystemTools.cxx
index 9ccec3d..55682f4 100644
--- a/Source/kwsys/testSystemTools.cxx
+++ b/Source/kwsys/testSystemTools.cxx
@@ -97,12 +97,12 @@ bool CheckDetectFileType()
{
bool res = true;
- if (kwsys::SystemTools::DetectFileType(TEST_SYSTEMTOOLS_EXE_FILE) !=
+ if (kwsys::SystemTools::DetectFileType(TEST_SYSTEMTOOLS_BIN_FILE) !=
kwsys::SystemTools::FileTypeBinary)
{
kwsys_ios::cerr
<< "Problem with DetectFileType - failed to detect type of: "
- << TEST_SYSTEMTOOLS_EXE_FILE << kwsys_ios::endl;
+ << TEST_SYSTEMTOOLS_BIN_FILE << kwsys_ios::endl;
res = false;
}
diff --git a/Source/kwsys/testSystemTools.h.in b/Source/kwsys/testSystemTools.h.in
index 3e63a43..5fefd10 100644
--- a/Source/kwsys/testSystemTools.h.in
+++ b/Source/kwsys/testSystemTools.h.in
@@ -14,7 +14,7 @@
#ifndef @KWSYS_NAMESPACE@_testSystemtools_h
#define @KWSYS_NAMESPACE@_testSystemtools_h
-#define TEST_SYSTEMTOOLS_EXE_FILE "@TEST_SYSTEMTOOLS_EXE_FILE@"
+#define TEST_SYSTEMTOOLS_BIN_FILE "@TEST_SYSTEMTOOLS_BIN_FILE@"
#define TEST_SYSTEMTOOLS_SRC_FILE "@TEST_SYSTEMTOOLS_SRC_FILE@"
#endif