| 2690 | } |
| 2691 | |
| 2692 | int 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 | |
| 2715 | int cmcmd::RunPreprocessor(std::vector<std::string> const& command, |
| 2716 | std::string const& intermediate_file) |
nothing calls this directly
no test coverage detected