| 84 | // ====================================================================== |
| 85 | |
| 86 | void TestDir(char const* filename) |
| 87 | { |
| 88 | struct stat st; |
| 89 | if (stat(filename, &st) < 0 || !S_ISDIR(st.st_mode)) { |
| 90 | cmFailed("Could not find dir: ", filename); |
| 91 | } else { |
| 92 | cmPassed("Find dir: ", filename); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // Here is a stupid function that tries to use std::string methods |
| 97 | // so that the dec cxx compiler will instantiate the stuff that |