aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-10 16:39:04 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-10 17:04:29 -0800
commitf93b3ccc4fb85bb9ef3f3f15d240647b44769fc4 (patch)
treeb9b350726a7a110633e853cde0e6691aaac131d6 /toolsrc/include
parent0b30bc7243b7caf3cfce9130f3862607efe715bd (diff)
downloadvcpkg-f93b3ccc4fb85bb9ef3f3f15d240647b44769fc4.tar.gz
vcpkg-f93b3ccc4fb85bb9ef3f3f15d240647b44769fc4.zip
Introduce make_cmake_cmd() helper function
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkglib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkglib.h b/toolsrc/include/vcpkglib.h
index 1ce55bd8a..353bfb0a0 100644
--- a/toolsrc/include/vcpkglib.h
+++ b/toolsrc/include/vcpkglib.h
@@ -17,4 +17,18 @@ namespace vcpkg
};
std::vector<StatusParagraph_and_associated_files> get_installed_files(const vcpkg_paths& paths, const StatusParagraphs& status_db);
+
+
+ struct CMakeVariable
+ {
+ CMakeVariable(const std::wstring& varname, const wchar_t* varvalue);
+ CMakeVariable(const std::wstring& varname, const std::string& varvalue);
+ CMakeVariable(const std::wstring& varname, const std::wstring& varvalue);
+ CMakeVariable(const std::wstring& varname, const fs::path& path);
+
+ std::wstring s;
+ };
+
+ std::wstring make_cmake_cmd(const fs::path& cmake_exe, const fs::path& cmake_script, const std::vector<CMakeVariable>& pass_variables);
+
} // namespace vcpkg