MCPcopy Create free account
hub / github.com/Kitware/CMake / WindowsCEEnvironment

Method WindowsCEEnvironment

Source/cmcmd.cxx:2692–2713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2690}
2691
2692int cmcmd::WindowsCEEnvironment(char const* version, std::string const& name)
2693{
2694#if !defined(CMAKE_BOOTSTRAP) && defined(_WIN32) && !defined(__CYGWIN__)
2695 cmVisualStudioWCEPlatformParser parser(name.c_str());
2696 parser.ParseVersion(version);
2697 if (parser.Found()) {
2698 /* clang-format off */
2699 std::cout << "@echo off\n"
2700 "echo Environment Selection: " << name << "\n"
2701 "set PATH=" << parser.GetPathDirectories() << "\n"
2702 "set INCLUDE=" << parser.GetIncludeDirectories() << "\n"
2703 "set LIB=" << parser.GetLibraryDirectories() << '\n';
2704 /* clang-format on */
2705 return 0;
2706 }
2707#else
2708 (void)version;
2709#endif
2710
2711 std::cerr << "Could not find " << name;
2712 return -1;
2713}
2714
2715int cmcmd::RunPreprocessor(std::vector<std::string> const& command,
2716 std::string const& intermediate_file)

Callers

nothing calls this directly

Calls 6

c_strMethod · 0.80
FoundMethod · 0.80
GetPathDirectoriesMethod · 0.80
GetLibraryDirectoriesMethod · 0.80
ParseVersionMethod · 0.45
GetIncludeDirectoriesMethod · 0.45

Tested by

no test coverage detected