| 1761 | } |
| 1762 | |
| 1763 | void cmTarget::CopyImportedCxxModulesProperties(cmTarget const* tgt) |
| 1764 | { |
| 1765 | // Normal targets cannot be the target of a copy. |
| 1766 | assert(!this->IsNormal()); |
| 1767 | // Imported targets cannot be the target of a copy. |
| 1768 | assert(!this->IsImported()); |
| 1769 | // Only imported targets can be the source of a copy. |
| 1770 | assert(tgt->IsImported()); |
| 1771 | |
| 1772 | // The list of properties that are relevant here include: |
| 1773 | // - compilation-specific properties for any language or platform |
| 1774 | // - compilation-specific properties for C++ |
| 1775 | // - build graph-specific properties that affect compilation |
| 1776 | // - IDE metadata properties |
| 1777 | // - static analysis properties |
| 1778 | |
| 1779 | static std::string const propertiesToCopy[] = { |
| 1780 | // Compilation properties |
| 1781 | "DEFINE_SYMBOL", |
| 1782 | "DEPRECATION", |
| 1783 | "NO_SYSTEM_FROM_IMPORTED", |
| 1784 | "POSITION_INDEPENDENT_CODE", |
| 1785 | "VISIBILITY_INLINES_HIDDEN", |
| 1786 | // -- Platforms |
| 1787 | // ---- Android |
| 1788 | "ANDROID_API", |
| 1789 | "ANDROID_API_MIN", |
| 1790 | "ANDROID_ARCH", |
| 1791 | "ANDROID_STL_TYPE", |
| 1792 | // ---- macOS |
| 1793 | "OSX_ARCHITECTURES", |
| 1794 | // ---- Windows |
| 1795 | "MSVC_DEBUG_INFORMATION_FORMAT", |
| 1796 | "MSVC_RUNTIME_CHECKS", |
| 1797 | "MSVC_RUNTIME_LIBRARY", |
| 1798 | "VS_PLATFORM_TOOLSET", |
| 1799 | // ---- OpenWatcom |
| 1800 | "WATCOM_RUNTIME_LIBRARY", |
| 1801 | // -- Language |
| 1802 | // ---- C++ |
| 1803 | "CXX_COMPILER_LAUNCHER", |
| 1804 | "CXX_STANDARD", |
| 1805 | "CXX_STANDARD_REQUIRED", |
| 1806 | "CXX_EXTENSIONS", |
| 1807 | "CXX_VISIBILITY_PRESET", |
| 1808 | "CXX_MODULE_STD", |
| 1809 | |
| 1810 | // Static analysis |
| 1811 | "CXX_CLANG_TIDY", |
| 1812 | "CXX_CLANG_TIDY_EXPORT_FIXES_DIR", |
| 1813 | "CXX_CPPLINT", |
| 1814 | "CXX_CPPCHECK", |
| 1815 | "CXX_ICSTAT", |
| 1816 | "CXX_INCLUDE_WHAT_YOU_USE", |
| 1817 | "CXX_PVS_STUDIO", |
| 1818 | "SKIP_LINTING", |
| 1819 | |
| 1820 | // Build graph properties |
no test coverage detected