diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2005-10-05 20:06:45 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2005-10-05 20:06:45 (GMT) |
commit | 6c54adf0ea6979afdf6ec67df7cd39ee2cca6e87 (patch) | |
tree | 53131b75c9421e98c81000fc4bdaa08990f6ab68 /Source/kwsys/testSystemTools.cxx | |
parent | 01ac3906da339451729f5ef43ef7367647537b59 (diff) | |
download | CMake-6c54adf0ea6979afdf6ec67df7cd39ee2cca6e87.zip CMake-6c54adf0ea6979afdf6ec67df7cd39ee2cca6e87.tar.gz CMake-6c54adf0ea6979afdf6ec67df7cd39ee2cca6e87.tar.bz2 |
ENH: avoid the use of GET_TARGET_PROPERTY by testing the CMake executable instead of the test executable
Diffstat (limited to 'Source/kwsys/testSystemTools.cxx')
-rw-r--r-- | Source/kwsys/testSystemTools.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/kwsys/testSystemTools.cxx b/Source/kwsys/testSystemTools.cxx index 7805c2a..9ccec3d 100644 --- a/Source/kwsys/testSystemTools.cxx +++ b/Source/kwsys/testSystemTools.cxx @@ -97,21 +97,21 @@ bool CheckDetectFileType() { bool res = true; - if (kwsys::SystemTools::DetectFileType(TEST_SYSTEMTOOLS_EXE) != + if (kwsys::SystemTools::DetectFileType(TEST_SYSTEMTOOLS_EXE_FILE) != kwsys::SystemTools::FileTypeBinary) { kwsys_ios::cerr << "Problem with DetectFileType - failed to detect type of: " - << TEST_SYSTEMTOOLS_EXE << kwsys_ios::endl; + << TEST_SYSTEMTOOLS_EXE_FILE << kwsys_ios::endl; res = false; } - if (kwsys::SystemTools::DetectFileType(TEST_SYSTEMTOOLS_SRC) != + if (kwsys::SystemTools::DetectFileType(TEST_SYSTEMTOOLS_SRC_FILE) != kwsys::SystemTools::FileTypeText) { kwsys_ios::cerr << "Problem with DetectFileType - failed to detect type of: " - << TEST_SYSTEMTOOLS_SRC << kwsys_ios::endl; + << TEST_SYSTEMTOOLS_SRC_FILE << kwsys_ios::endl; res = false; } |