| 217 | } |
| 218 | |
| 219 | bool cmRuntimeDependencyArchive::GetGetRuntimeDependenciesCommand( |
| 220 | std::string const& search, std::vector<std::string>& command) const |
| 221 | { |
| 222 | // First see if it was supplied by the user |
| 223 | std::string toolCommand = this->GetMakefile()->GetSafeDefinition( |
| 224 | "CMAKE_GET_RUNTIME_DEPENDENCIES_COMMAND"); |
| 225 | if (toolCommand.empty() && search == "objdump") { |
| 226 | toolCommand = this->GetMakefile()->GetSafeDefinition("CMAKE_OBJDUMP"); |
| 227 | } |
| 228 | if (!toolCommand.empty()) { |
| 229 | cmExpandList(toolCommand, command); |
| 230 | return true; |
| 231 | } |
| 232 | |
| 233 | // Now go searching for it |
| 234 | std::vector<std::string> paths; |
| 235 | #ifdef _WIN32 |
| 236 | cmGlobalGenerator* gg = this->GetMakefile()->GetGlobalGenerator(); |
| 237 | |
| 238 | // Add newer Visual Studio paths |
| 239 | AddVisualStudioPath(paths, "Visual Studio 18 ", 18, gg); |
| 240 | AddVisualStudioPath(paths, "Visual Studio 17 ", 17, gg); |
| 241 | AddVisualStudioPath(paths, "Visual Studio 16 ", 16, gg); |
| 242 | AddVisualStudioPath(paths, "Visual Studio 15 ", 15, gg); |
| 243 | |
| 244 | // Add older Visual Studio paths |
| 245 | AddRegistryPath( |
| 246 | paths, |
| 247 | "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\14.0;InstallDir]/" |
| 248 | "../../VC/bin", |
| 249 | this->GetMakefile()); |
| 250 | AddEnvPath(paths, "VS140COMNTOOLS", "/../../VC/bin"); |
| 251 | paths.push_back( |
| 252 | "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin"); |
| 253 | AddRegistryPath( |
| 254 | paths, |
| 255 | "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\12.0;InstallDir]/" |
| 256 | "../../VC/bin", |
| 257 | this->GetMakefile()); |
| 258 | AddEnvPath(paths, "VS120COMNTOOLS", "/../../VC/bin"); |
| 259 | paths.push_back( |
| 260 | "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin"); |
| 261 | AddRegistryPath( |
| 262 | paths, |
| 263 | "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0;InstallDir]/" |
| 264 | "../../VC/bin", |
| 265 | this->GetMakefile()); |
| 266 | AddEnvPath(paths, "VS110COMNTOOLS", "/../../VC/bin"); |
| 267 | paths.push_back( |
| 268 | "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin"); |
| 269 | AddRegistryPath( |
| 270 | paths, |
| 271 | "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0;InstallDir]/" |
| 272 | "../../VC/bin", |
| 273 | this->GetMakefile()); |
| 274 | AddEnvPath(paths, "VS100COMNTOOLS", "/../../VC/bin"); |
| 275 | paths.push_back( |
| 276 | "C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin"); |
no test coverage detected