summaryrefslogtreecommitdiff
path: root/app-text/doxygen/files/doxygen-1.9.8-suppress-unused-option-libcxx.patch
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-01-11 17:04:37 +0100
committerMichał Górny <mgorny@gentoo.org>2024-01-12 15:36:00 +0100
commitf7fdfdaeec3764929686064a6054c38a6b2d7788 (patch)
treea420a7aa231f9c43b9911a90b4cfa99ba60b3a24 /app-text/doxygen/files/doxygen-1.9.8-suppress-unused-option-libcxx.patch
parent97d464ca1fac11a186de447c6e258771063af450 (diff)
downloadgentoo-f7fdfdaeec3764929686064a6054c38a6b2d7788.tar.gz
gentoo-f7fdfdaeec3764929686064a6054c38a6b2d7788.tar.bz2
gentoo-f7fdfdaeec3764929686064a6054c38a6b2d7788.zip
Move {app-doc → app-text}/doxygen
Per the category metadata, app-doc/ is reserved for documentation *files* and not software. Move it to app-text/ where it seems a better fit. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-text/doxygen/files/doxygen-1.9.8-suppress-unused-option-libcxx.patch')
-rw-r--r--app-text/doxygen/files/doxygen-1.9.8-suppress-unused-option-libcxx.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/app-text/doxygen/files/doxygen-1.9.8-suppress-unused-option-libcxx.patch b/app-text/doxygen/files/doxygen-1.9.8-suppress-unused-option-libcxx.patch
new file mode 100644
index 000000000000..1da9a2da6459
--- /dev/null
+++ b/app-text/doxygen/files/doxygen-1.9.8-suppress-unused-option-libcxx.patch
@@ -0,0 +1,16 @@
+Always expose the use_libc++ option. It's only useful for Clang but cmake.class
+tries to find when we've used CMake options which are unused/unknown and this
+triggers it for GCC builds if we set -Duse_libc++=OFF.
+
+So, always expose the option so we can turn it off without a warning.
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -21,7 +21,7 @@ option(build_xmlparser "Automatically update the XML parser modules when updatin
+ option(build_search "Build external search tools (doxysearch and doxyindexer)" OFF)
+ option(build_doc "Build user manual (HTML and PDF)" OFF)
+ option(build_doc_chm "Build user manual (CHM)" OFF)
+-if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
++if (TRUE)
+ option(use_libc++ "Use libc++ as C++ standard library." ON)
+ endif()
+ option(use_libclang "Add support for libclang parsing." OFF)