diff options
author | Brad King <brad.king@kitware.com> | 2022-06-02 13:23:02 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-06-02 13:23:10 (GMT) |
commit | 6f72a41de05e44e6ff196d39125028b8f2f47e59 (patch) | |
tree | 41a3f3924fb31185281cd145e44e72a6f74dcd1e | |
parent | 6b2a06075951cd9041684cadaf48eaf3504be531 (diff) | |
parent | 4a9daae4832de862ee0f82e13784a93dcf5fafbe (diff) | |
download | CMake-6f72a41de05e44e6ff196d39125028b8f2f47e59.zip CMake-6f72a41de05e44e6ff196d39125028b8f2f47e59.tar.gz CMake-6f72a41de05e44e6ff196d39125028b8f2f47e59.tar.bz2 |
Merge topic 'automoc-silence-ranlib-warning'
4a9daae483 automoc: silence linker warning on macos
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7296
-rw-r--r-- | Source/cmQtAutoMocUic.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmQtAutoMocUic.cxx b/Source/cmQtAutoMocUic.cxx index 0d38dfb..6e8ada1 100644 --- a/Source/cmQtAutoMocUic.cxx +++ b/Source/cmQtAutoMocUic.cxx @@ -2175,7 +2175,14 @@ void cmQtAutoMocUicT::JobMocsCompilationT::Process() // Placeholder content content += "// No files found that require moc or the moc files are " "included\n" - "enum some_compilers { need_more_than_nothing };\n"; + "struct cmake_automoc_silence_linker_warning{\n" + " virtual ~cmake_automoc_silence_linker_warning();\n" + "};\n" + "\n" + "inline " + "cmake_automoc_silence_linker_warning::" + "~cmake_automoc_silence_linker_warning()\n" + "{}\n"; } else { // Valid content const bool mc = this->BaseConst().MultiConfig; |