Ejemplo n.º 1
0
 std::wstring make_cmake_cmd(const fs::path& cmake_exe,
                             const fs::path& cmake_script,
                             const std::vector<CMakeVariable>& pass_variables)
 {
     std::wstring cmd_cmake_pass_variables = Strings::join(L" ", pass_variables, [](auto&& v) { return v.s; });
     return Strings::wformat(
         LR"("%s" %s -P "%s")", cmake_exe.native(), cmd_cmake_pass_variables, cmake_script.generic_wstring());
 }
Ejemplo n.º 2
0
 std::string path_to_generic(fs::path const& x)
 {
     return to_utf8(x.generic_wstring());
 }
Ejemplo n.º 3
0
 CMakeVariable::CMakeVariable(const CWStringView varname, const fs::path& path)
     : CMakeVariable(varname, path.generic_wstring())
 {
 }