summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-12-21 21:42:32 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-12-21 21:42:32 (GMT)
commit5aad7bf2d4d9c5fdf15e56c943ca66986e9e68e9 (patch)
tree522b51f5364e1bffd0152a064911cf33f9d88926 /Source/cmSystemTools.h
parentc424267cc1c4462554f4f99387a8a3347ea593a2 (diff)
downloadCMake-5aad7bf2d4d9c5fdf15e56c943ca66986e9e68e9.zip
CMake-5aad7bf2d4d9c5fdf15e56c943ca66986e9e68e9.tar.gz
CMake-5aad7bf2d4d9c5fdf15e56c943ca66986e9e68e9.tar.bz2
Make new web api safe for bootstrap build.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index ae397e9..7bdc14f 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -46,18 +46,6 @@ public:
static void ExpandRegistryValues(std::string& source,
KeyWOW64 view = KeyWOW64_Default);
- enum HTTPMethod {
- HTTP_GET,
- HTTP_POST
- };
-
- /**
- * Perform an HTTP request.
- */
- static int HTTPRequest(std::string url, HTTPMethod method,
- std::string& response,
- std::string fields = "", int timeout = 10);
-
/**
* Platform independent escape spaces, unix uses backslash,
* windows double quotes the string.
@@ -354,6 +342,18 @@ public:
static std::string RelativePath(const char* local, const char* remote);
#ifdef CMAKE_BUILD_WITH_CMAKE
+ enum HTTPMethod {
+ HTTP_GET,
+ HTTP_POST
+ };
+
+ /**
+ * Perform an HTTP request.
+ */
+ static int HTTPRequest(std::string url, HTTPMethod method,
+ std::string& response,
+ std::string fields = "", int timeout = 10);
+
/** Remove an environment variable */
static bool UnsetEnv(const char* value);