| 34 | cmLinkLineDeviceComputer::~cmLinkLineDeviceComputer() = default; |
| 35 | |
| 36 | static bool cmLinkItemValidForDevice(std::string const& item) |
| 37 | { |
| 38 | // Valid items are: |
| 39 | // * Non-flags (does not start in '-') |
| 40 | // * Specific flags --library, --library-path, -l, -L |
| 41 | // For example: |
| 42 | // * 'cublas_device' => pass-along |
| 43 | // * '--library pthread' => pass-along |
| 44 | // * '-lpthread' => pass-along |
| 45 | // * '-pthread' => drop |
| 46 | // * '-a' => drop |
| 47 | // * '-framework Name' (as one string) => drop |
| 48 | return (!cmHasPrefix(item, '-') || // |
| 49 | cmHasLiteralPrefix(item, "-l") || // |
| 50 | cmHasLiteralPrefix(item, "-L") || // |
| 51 | cmHasLiteralPrefix(item, "--library")); |
| 52 | } |
| 53 | |
| 54 | bool cmLinkLineDeviceComputer::ComputeRequiresDeviceLinking( |
| 55 | cmComputeLinkInformation& cli) |
no test coverage detected
searching dependent graphs…