From 7210eee92deb939231a1d9e934465c72359fa8d9 Mon Sep 17 00:00:00 2001 From: Sebastien Barre <sebastien.barre@kitware.com> Date: Thu, 6 Oct 2005 17:16:07 -0400 Subject: [PATCH] ENH: CMake kills me (so does Cygwin) --- CMakeLists.txt | 3 ++- testSystemTools.bin | Bin 0 -> 766 bytes testSystemTools.cxx | 4 ++-- testSystemTools.h.in | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 testSystemTools.bin diff --git a/CMakeLists.txt b/CMakeLists.txt index ddda46d..ffbdb13 100644 --- a/CMakeLists.txt +++ b/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/testSystemTools.bin b/testSystemTools.bin new file mode 100644 index 0000000000000000000000000000000000000000..961a4043b9b2785351ab26a33cfcb1f366c1391b GIT binary patch literal 766 zcmbV~J8r`;5JX3D078KQr%G#;xrK8icPgzTq*cc{r`QAV5H3@?bYXZsLq;FVX_BRe z%g5!cJ`hlGG|ej%-%r3B^E=g0A5?{B&Opc7@6oZyO4pUdnM;@%vkIOsxNAjmXiL+d z<7<j2^UKJw7TdtF{uHlKHe%fuPT7IF?^Onp9ITGa12K^EaW+U6Lp$dbT5++nL9%u~ z+GR+A{A15-3r?8qYLM)KM|){7waZ+Och9eo9(ZP#p?r(siOIvV<R#mkooAMOZ~s5> zAIM?AiVDY~%?XgU=c3&OkPg?P^8282@1&KxNx}UnZQM`N*8ME)+%M9>{YuT^22-rR A-v9sr literal 0 HcmV?d00001 diff --git a/testSystemTools.cxx b/testSystemTools.cxx index d906bc4..7bc8738 100644 --- a/testSystemTools.cxx +++ b/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/testSystemTools.h.in b/testSystemTools.h.in index c43097b..d3b627c 100644 --- a/testSystemTools.h.in +++ b/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 -- GitLab