dev-libs/cereal: Use cmake_comment_add_subdirectory

Results in:
  if(BUILD_DOC)
  #DONOTBUILD     add_subdirectory(doc)
  endif()

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2026-05-24 21:30:54 +02:00
parent 0ae7f3570d
commit 4eb511be0a

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -20,7 +20,7 @@ DEPEND="dev-libs/rapidjson"
src_prepare() {
if ! use doc ; then
sed -i -e '/add_subdirectory(doc/d' CMakeLists.txt || die
cmake_comment_add_subdirectory doc
fi
# remove bundled rapidjson