summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-01-14 15:03:22 (GMT)
committerBrad King <brad.king@kitware.com>2011-01-14 15:03:22 (GMT)
commit8704525f201452929a2bec96fb04387c97ad8a79 (patch)
tree11360efdb0abaf2dbf186707d70b89a7fd943105 /Source/cmake.h
parent28a0403c3491d4a96f5dc827e54442a1d0a0dea7 (diff)
downloadCMake-8704525f201452929a2bec96fb04387c97ad8a79.zip
CMake-8704525f201452929a2bec96fb04387c97ad8a79.tar.gz
CMake-8704525f201452929a2bec96fb04387c97ad8a79.tar.bz2
Reject directory names containing '=' (#11689)
Some characters are not well-supported by native build systems. Reject paths containing such characters before even trying to configure a project.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 435d38b..6744ca1 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -435,6 +435,8 @@ protected:
///! Find the full path to one of the cmake programs like ctest, cpack, etc.
std::string FindCMakeProgram(const char* name) const;
+
+ bool RejectUnsupportedPaths(const char* desc, std::string const& path);
private:
cmake(const cmake&); // Not implemented.
void operator=(const cmake&); // Not implemented.