diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2005-10-06 21:16:07 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2005-10-06 21:16:07 (GMT) |
commit | 07b45da69356a3cd0e1b7ed136449c38a9d82c69 (patch) | |
tree | 7886b4d7c043229be8867ca9fef97c8054980247 /Source/kwsys | |
parent | 0281892890a87ede9a102164d50ee7127e3273b6 (diff) | |
download | CMake-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.txt | 3 | ||||
-rw-r--r-- | Source/kwsys/testSystemTools.bin | bin | 0 -> 766 bytes | |||
-rw-r--r-- | Source/kwsys/testSystemTools.cxx | 4 | ||||
-rw-r--r-- | Source/kwsys/testSystemTools.h.in | 2 |
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 Binary files differnew file mode 100644 index 0000000..961a404 --- /dev/null +++ b/Source/kwsys/testSystemTools.bin 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 |